$ch = curl_init(); curl_setopt($ch,CURLOPT_URL,'https://feedburner.google.com/api/awareness/1.0/GetFeedData?id=7qkrmib4r9rscbplq5qgadiiq4'); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2); $content = curl_exec($ch); $subscribers = get_match('/circulation="(.*)"/isU',$content); curl_close($ch);
De $ subscribers-variabele is dan het aantal abonnees voor echo (of wat dan ook). U moet de ID aan het einde van de tweede regel vervangen door de ID van uw feed (zoek deze). U moet ook de Awareness-functie van FeedBurner hebben ingeschakeld .