cvs: php-master-web /scripts rss_parser

From: Date: Wed, 01 Mar 2006 12:28:54 +0000
Subject: cvs: php-master-web /scripts rss_parser
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30763@lists.php.net to get a copy of this message
nlopess Wed Mar 1 12:28:54 2006 UTC Modified files: /php-master-web/scripts rss_parser Log: make the scipt non dependent on a specific year. http://cvs.php.net/viewcvs.cgi/php-master-web/scripts/rss_parser?r1=1.13&r2=1.14&diff_format=u Index: php-master-web/scripts/rss_parser diff -u php-master-web/scripts/rss_parser:1.13 php-master-web/scripts/rss_parser:1.14 --- php-master-web/scripts/rss_parser:1.13 Tue Jun 14 11:07:02 2005 +++ php-master-web/scripts/rss_parser Wed Mar 1 12:28:54 2006 @@ -103,7 +103,7 @@ #DEBUG# print "<p>Info: New Headline: $headlineid<br />"; // End of headlines reached - } elseif (strpos($line, '<a href="/news-2004.php">News Archive</a>')) { + } elseif (preg_match('@<a href="/news-\d+.php">News Archive</a>@', $line)) { array_pop($headlines); break;

« previous php.mirrors (#30763) next »