Home » , , » How to display Feedburner Subscribers count as a text

How to display Feedburner Subscribers count as a text

Feedburner provides a feedburner subscribers count button. but using this tip you can show this as a text.

Just copy and paste this code anywhere you like most likely sidebar.php


<?php
//get cool feedburner count
$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=your feedburner id";
//Initialize the Curl session
$ch = curl_init();
//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Set the URL
curl_setopt($ch, CURLOPT_URL, $whaturl);
//Execute the fetch
$data = curl_exec($ch);
//Close the connection
curl_close($ch);
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
echo $fb;
//end get cool feedburner count
?>

Now replace "your feedburner id" with your Feedburner ID
If You Like product from here Click Here free product informationGoogle Android PC Tablet

0 comments:

Post a Comment

 
Support : Creating Website | SEO Template | Free Template
Copyright © 2011. Free Wordpress Theme And Templates For You - All Rights Reserved
Proudly powered by Blogger