Getting the number of feedburner subscribers?

Posted by iMaster on Stack Overflow See other posts from Stack Overflow or by iMaster
Published on 2010-04-24T21:06:19Z Indexed on 2010/04/24 21:13 UTC
Read the original article Hit count: 231

Filed under:
|
|

I'm currently using this code to get the number of subscribers to my blog:

$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=http://feeds.feedburner.com/DesignDeluge"; 
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $whaturl);
$data = curl_exec($ch);
curl_close($ch);
$xml = new SimpleXMLElement($data); 
$fb = $xml->feed->entry['circulation'];

but when I echo $fb it doesn't work (the whole file that $fb is being echoed on doesn't appear). Any ideas on why this isn't working?

© Stack Overflow or respective owner

Related posts about php

Related posts about feedburner