Hi,
I am kinda new to PHP although I have been coding in other languages for some time. I have a quick question. Here is the scenario:
I have a user here at work that goes through about 200 or so websites a week and searches them for specific words. I made a little web form and php page that will search this list of pages for specific words he fills into the form. It works fine unless it times out opening the page. If it times out on one page then the script will stop right there and not try to open any other pages. The script basically calls a function over and over again for each url that will be searched. I have set_time_limit (120) (I think I used that correctly) in the function as to not take too long on each url, but if one fails, then it stops the entire script (not just the function).
So, I don't know where to go from here. Is there any way to give the function a time limit and that if that limit is reached then just exit that function but not the entire script/page?
Any help would be greatly appreciated.
Thanks.