Re: Timeout for fopen ?

From: Date: Sun, 14 Oct 2007 10:40:56 +0000
Subject: Re: Timeout for fopen ?
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-263195@lists.php.net to get a copy of this message
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.

« previous php.general (#263195) next »