PDA

View Full Version : Help needed with PHP!!!!!!!!!!!



dinchu37
February 4th, 2008, 11:40 PM
Is there a way to control php aplications by time? for example if some part of a For loops takes more than 10 seconds continue with the next number of the loop.

i have to extract data from about 900 pages and I need a system that tryes a max of 10 seconds per url and if it cannot get results in that time then continue with the next url. Help will be very apreciated!

hl
February 5th, 2008, 12:26 AM
What function are you using to open each page? Most of the file opening functions have some sort of timeout.

edit:/ This may help you out: [d-php]stream_set_timeout[/d-php]