php count rss entries since a specific date/time
Posted
by Steven
on Stack Overflow
See other posts from Stack Overflow
or by Steven
Published on 2010-04-09T17:57:08Z
Indexed on
2010/04/09
18:03 UTC
Read the original article
Hit count: 268
can anyone tell me why this code don't work:
$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;
© Stack Overflow or respective owner