Basically, when trying to use the file() function to get an html document from a remote location, sometimes it takes a long time. Is there a way to specify a time limit?
So for example, if 5 seconds have passed on the attempt to grab the file, abort the attempt and continue on with the script?