You are here: Re: preg_match_all Maximum execution time of 60 seconds error « PHP Programming Language « IT news, forums, messages
Re: preg_match_all Maximum execution time of 60 seconds error

Posted by Shuan on 08/17/06 21:35

I am trying to grab sites like craigslist, parse with regular expression
and put some content into database.

$request -> fetch( $region_link );

if( !$request -> error ){
$pageContent = $request -> results;

$regionpattern =
"/<a[^>]*href=\"(\/s\/SL\/sg_maY.*)\".*>.*<img.*alt=\"(.*)\".*id=\"btn.*\">/
siU";

if(preg_match_all( $regionpattern, $pageContent, $categorylinks ))
{
for( $y = 0; $y < count( $categorylinks[ 1 ] ); $y++ ){

$category_link="http://www.mysite.com".$categorylinks[ 1 ][ $y ];

include( "pagecrawler.php" );
}


}

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация