cgchris99 Posted July 10, 2007 Share Posted July 10, 2007 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 Link to comment https://forums.phpfreaks.com/topic/59305-how-to-tell-if-curl-timed-out/ Share on other sites More sharing options...
per1os Posted July 10, 2007 Share Posted July 10, 2007 http://us.php.net/manual/en/curl.constants.php CURLOPT_CONNECTTIMEOUT (integer) http://us.php.net/manual/en/ref.curl.php CURLOPT_CONNECTTIMEOUT The number of seconds to wait whilst trying to connect. Use 0 to wait indefinitely. http://us.php.net/manual/en/function.curl-setopt.php Link to comment https://forums.phpfreaks.com/topic/59305-how-to-tell-if-curl-timed-out/#findComment-294598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.