That only works to set a timeout on reading data once the fopen has successfully returned. The problem is that the fopen function is hanging.
-----Original Message----- From: Arjen Brouwer [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 6:08 AM To: Giz Subject: Re: [PHP] Timing out fopen using https stream wrapper? check: http://php.net/stream_set_timeout ----- Original Message ----- From: "Giz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 05, 2003 2:09 PM Subject: [PHP] Timing out fopen using https stream wrapper? > I have a class that uses fopen to read some xml data from a site with > ongoing stability issues. Fopen is using the stream wrapper for http. > > Something I've struggled with is finding a way to set a timeout value when > fopen is attempting to get a page from a site that is inaccessible for some > reason. > > On my test server, the behavior is that fopen seems to hang up, and the > script never returns. > > It seems I have been over the documentation repeatedly, but there simply > isn't any documented way of setting a timeout duration. Any ideas? > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php