I'm using fsockopen to fetch files. However if fsockopen doesn't receive a response from the destination server within the specified timeout (eg. 5 seconds) the timeout is ignored.
I've read suggestions that the timeout in fsockopen only applies once it has received a response from the destination server. Can anyone confirm this is correct?
Is it possible to return an error if fsockopen was unable to recieve a response from the destination server within a 5 seconds timeout?....allowing the script to continue running, eg. to perform a fsockopen fetch on a different file.