Re: Timeout for fopen ?
| From: | heavyccasey at gmail dot com | Date: | Sun, 14 Oct 2007 02:55:15 +0000 |
| Subject: | Re: Timeout for fopen ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263193@lists.php.net to get a copy of this message | ||
You could use Javascript/XMLHTTP to call a PHP script that opens the file.
On 10/13/07, debussy007 <debussy007@gmail.com> wrote:
>
> Hello,
>
> I want to use "fopen" to open an URL, but is it possible to add a timeout ?
> This to avoid that fopen slows down my script ?
> Because if site I access takes 10 secs to respond,
> I suppose my script will just wait fopen returns something.
>
> Thank you.
> --
> View this message in context:
> http://www.nabble.com/Timeout-for-fopen---tf4620009.html#a13194530
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>