Hi,
Any thoughts on how one could timeout a function? I'm getting the contents of a url, and sometimes it will just hang forever and ever. If I use file(), there is no way to limit it, and if open a socket connection (which does have timeout parm), it seems to really increase the time it takes to run overall.
So what i'm hoping to do is put the file() command in a function and set a timeout for the function it's in.
Thanks in advance for any thoughts,
🙂Ben