You could use Javascript/XMLHTTP to call a PHP script that opens the file. On 10/13/07, debussy007 <debussy007@xxxxxxxxx> 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php