Reply to Re: preg_match_all Maximum execution time of 60 seconds error

Your name:

Reply:


Posted by Shuan on 08/18/06 23:05

Hi,

>ini_set('max_execution_time', 3600); // 1 hour

This solution worked, but I need to check out the reg. expression
to see if i am doing it effiiciently.

Thanks all for your supports.

--
-+ http://alvaro.es - Alvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programacion web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:eb35c$44e4eacf$8259c69c$21874@news2.tudelft.nl...
> Shuan wrote:
> >> It's okay if you're doing a job that really needs a long time to
> >> execute, such us retriving a 50 MB file from the Internet, spidering
> >> a web site or synchronising two databases.
> >>
> >> Is that the case?
> >
> > i don't have to get a big file but i need to crawl the whole
> > websites( about 1000 pages )
> > and that takes time;
>
> Well yeah, about a 1000 pages will almost certainly need more execution
time,
> forget what I said about the regex. As the preg_match_all is likely the
most
> time consuming part of your script (be it relativelyy fast), chances are
quite
> high that in it's nth execution the limit is passed.
>
> DO you know how many pages you do parse in those 60 second BTW?
>
> Grtz,
> --
> Rik Wasmus
>
>

[Back to original 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

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