/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function get_average_readers($feed_id,$interval = 7){ $feed_url="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=".$feed_id."&dates=".$ago.",".$today; $xml = new SimpleXMLElement($data); $fb = $xml->feed->entry['circulation']; $nb = 0; foreach($xml->feed->children() as $circ){ $nb += $circ['circulation']; } }
URL: http://www.catswhocode.com/blog/10-life-saving-php-snippets