I have a page that does many regexes with large files and iit’s giving me the 60 seconds time out. Is there a good way of avoiding this?
You can do it several ways..
If the hosting server does not have safe mode enabled, you should be able to use ini_set(max_execution_time, ###);
Otherwise, what you can do, is have the script open the file, and read 100 lines… pause, then reload and read the next 100 lines…
thanx for reply
I have a set of 10 textboxes with 10 url’s and my page should extract their titles and metas and lots of other details using regex and it timeouts. I really would like to know if it’s possible to run this job with reloads.
try using (.*?) between title…
and, only get the first half a kb per site