Re: include() question

From: Date: Mon, 08 May 2006 18:08:17 +0000
Subject: Re: include() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235743@lists.php.net to get a copy of this message
On Mon, May 8, 2006 12:55 pm, PHP wrote: > I am including a page from another server: > (include("http://....")); > > Works fine, but if for some reason that server is not responding, the > page that is calling it also never returns, so the user ends up with a > time out. > > Is there something I can set that will not force the calling server to > wait indefinetely for the remote server to respond, and just continue > on? Try this: $old = ini_set('default_socket_timeout', 0); //wait forever include "http://..."; ini_set('default_socket_timeout', $old); No promise it will work. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#235743) next »