Page 1 of 1

How do I set the time for timing out

Posted: Tue Jan 17, 2006 5:20 pm
by jaymoore_299
I have a collection of urls that I visit with file() command. There may be over 300 to visit.
Some of the sites are either down or take too long to load, so I want to be able to move on to the next one faster than it is doing now.

I get the error message
"failed to open stream: Operation timed out in"

Is there a setting I can change so that this would time out even faster than it is doing now? Now it may be something like 1 minutes and I want it set to maybe 20 seconds or less.

Posted: Tue Jan 17, 2006 6:23 pm
by raghavan20
you have to change default socket timeout value in php.ini
Look here for more detail.