0
誰能告訴我爲什麼這個代碼不工作:PHP計數RSS條目
$q = $_GET['q'];
// Load and parse the XML document
$rss = simplexml_load_file("http://search.twitter.com/search.atom?lang=en&q=$q&rpp=100&page=1");
$Count1 = 0;
while(strtotime($rss->entry->published)>1270833600){
foreach ($rss->entry as $item) {
$Count1++;
}
}
print "Total Record: ".$Count1;
請指定*不工作*。任何錯誤? – 2010-04-09 17:59:56