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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.