seamus wrote: » You can set parameters for the cURL connection using curl_setopt() One of these allows you to set a timeout for the connection, after which curl will return with an error, and you can gracefully kill your script. You could even set it to say 15 seconds and then return a message to the user saying that the O2 website isn't responding. If your webserver is also running apache, I would recommend setting a max execution time for your PHP scripts also (maybe five minutes), so that any PHP script which executes longer than this will be automatically killed.
set_time_limit(1500);
AARRRGH wrote: » You could stick something like this at the top of your script:set_time_limit(1500);