Return to Snippet

Revision: 19271
at October 20, 2009 06:48 by jeeremie

Initial Code
$url = "";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch); 
if ($data) {
	preg_match('/circulation=\"([0-9]+)\"/',$data, $matches);
	if ($matches[1] != 0)
		$fb['count'] = $matches[1];
	$fb['lastcheck'] = mktime();
echo $fb['count'].' Readers!';

Initial URL

Initial Description
Add your feedburner count text only to your site. Check Google code for Feedburner Awareness API:

Replace "yourURIhere" with your URI. To find it, go to Feedburner dashboard and click "Edit Feed Details. You will see something like this:

Feed Address: (Your FeedBurner feed)

In this example, the URI is "web-kreation/IaJu"

Initial Title
Add feedburner count to your site - text only

Initial Tags

Initial Language