$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);
Variablen $ subscribers vil derefter være dit abonnentantal for at ekko ud (eller hvad som helst). Du bliver nødt til at erstatte ID'et i slutningen af den anden linje med dit feed's ID (find det). Du skal også have aktiveret Awareness-funktionen i FeedBurner .