PHP curl timeout error detection PHP curl timeout error detection php php

PHP curl timeout error detection


you can check error number and its' description like this:

// Check if any error occurredif(curl_errno($ch)){    echo 'Curl error: ' . curl_error($ch);}