Saturngod

What's on my mind

PHP CURL zlib.dll is missing

Today, we tried to install PHP on IIS 7. Everything is working fine. But CURL can’t use. So, I tried to enable the php_curl.dll in php.ini. However, It didn’t show on phpinfo() .

Open the C:\php\ from terminal

C:\php\> php.exe -v

It was showing zlib.dll is missing

Download the zlib.dll from zlib.net (compiled DLL). Extract the zip file and it include zlib1.dll.

Rename zlib1.dll to zlib.dll . Move zlib.dll to C:\php\;

C:\php\> php.exe -v

Working fine and no error.

So, search curl in phpinfo().

Perfect. It’s showing now.

Get subscriber count with feedburner API

Today, I want to add feed count from feedburner , in my blog. So, I need to write code using feedburner api. It's not easy.
  1. login your feedburner and go to your feed.
  2. Go to Publicize tag
  3. Go to Awareness Api and active it. Now, time for coding. change your id in uri of $toopen. In the code, I use saturngoden.

$ch = curl_init(); /// initialize a cURL session curl_setopt($ch, CURLOPT_URL, $toopen ); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); $content = curl_exec ($ch);//end get cool feedburner count curl_close($ch);

$dom = new DOMDocument(); $dom->preserveWhiteSpace = false; $dom->loadXML($content); $count=$dom->getElementsByTagName("entry")->item(0)->getAttribute("circulation"); echo $count; ?>