I am writing a script and have most things working well. However, I need to be able to tell if the CURL request timed out. How do I do this? Sorry if it's a dumb question. Thanks for any advice
if (curl_errno($ch) == CURLE_OPERATION_TIMEOUTED) { // Timed out } PHP: http://curl.haxx.se/libcurl/c/libcurl-errors.html