Re: Timeout for fopen ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can use the CURL module, which has support for timeout.
http://www.php.net/manual/en/ref.curl.php

debussy007 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux