RE: [PHP] Timing out fopen using https stream wrapper?
| From: | Giz | Date: | Sat, 05 Jul 2003 23:23:09 +0000 |
| Subject: | RE: [PHP] Timing out fopen using https stream wrapper? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154084@lists.php.net to get a copy of this message | ||
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:arjenjb@quicknet.nl]
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" <gizmo@gizmola.com>
To: <php-general@lists.php.net>
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
>