/* module: feedcount_sample.php */ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // $fburl = "http://api.feedburner.com/awareness/1.0/GetFeedData?uri=dollarshower"; $fburl = "https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=dollarshower"; curl_setopt($ch, CURLOPT_URL, $fburl); $p = xml_parser_create(); xml_parse_into_struct($p, curl_exec($ch), $vals, $index); xml_parser_free($p); if ($vals[0]['attributes']['STAT']=="ok") // TODO: Format the value below if you want to display your feedcount differently echo $vals[2]['attributes']['CIRCULATION']; curl_close($ch);