|
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
>
>
Navigation:
[Reply to this message]
|