cURL makes PHP throw a Fatal Error if it takes more than 30 seconds to get a response from the server. This seems to be happening a lot in my web app, particularly if the other server is busy. It really isn't pretty for the user to see that.

I would like to either catch the timeout and display a nice messsage myself, or alternatively, I was wondering if there was a way I could continue with the rest of the PHP script, as the rest of that script can execute even if there is no response from the server (with default values).

I don't really see why cURL would throw a Fatal Error instead of a Warning for the timeout to be honest. It's a real pain.