Hello, I'm using cURL to connect to a website, now among the settings of the connection that can be specified using the function curl_setopt() there's an option to control the timeout of the connection. Here's the function that sets the timeout for a cURL connection: PHP Code: curl_setopt ($connect, CURLOPT_CONNECTTIMEOUT, $timeout); PHP: The last parameter contains the timeout value in seconds. Now my question is: How do I know if the connection has timed out or not. How can I write an if statement that will show an error message if the connection has timed out and it could not connect to the website within the period specified by the timeout option as described above?