Revision: 43953
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 4, 2011 06:53 by alexeihidalgo
Initial Code
<?php $url = file_get_contents('https://feedburner.google.com/api/awareness/1.0/Get FeedData?uri=YOUR FEED ADDRESS'); $begin = 'circulation="'; $end = '"'; $page = $url; $parts = explode($begin,$page); $page = $parts[1]; $parts = explode($end,$page); $fbcount = $parts[0]; if($fbcount == '') { $fbcount = '0'; } echo '<b> '.$fbcount.' </b> Subscribers'; ?> <?php $twit = file_get_contents('http://twitter.com/users/show/USERNAME.xml'); $begin = '<followers_count>'; $end = '</followers_count>'; $page = $twit; $parts = explode($begin,$page); $page = $parts[1]; $parts = explode($end,$page); $tcount = $parts[0]; if($tcount == '') { $tcount = '0'; } echo '<b> '.$tcount.' </b> Followers'; ?>
Initial URL
Initial Description
To implemented this code is easy, all need to do write down PHP FeedBurner Counter below in our themes files, example in sidebar.php, header.php or footer.php. Let’s get started, Please note you need replace YOUR FEED ADDRESS with your Feeds,
Initial Title
RSS Readers in sidebar and Twitter.
Initial Tags
text
Initial Language
PHP