Many thanks for the advise. On having a look at the description of the functions for socket_set_timeout() and fsockopen() they seem to be what I'm looking for. From the descriptions the time limit you put on fsockopen() refers to the the timelimit on the connection opening, and you must use the timelimit in socket_set_timeout() for the timelimit on receiving data via the connection.
However my knowledge of PHP is fairly novice and I don't understand much of the script shown in the manual examples.
I was wondering if anyone could help me write the piece of script I require:
The script I have at the moment is as follows
$rf = fopen($Data_URL, "r");
$Page_Data = fread($rf, $Bytes);
fclose($rf);
What I would like to do is set a 'timeout' ($Timeout) in seconds - where the data should be from the remote URL within the timeout period else(execute alternative function).
Any help would be much appreciated.