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