"Socket must be already connected" err while fopen('http://...') on Apache

From: Date: Fri, 14 Mar 2003 11:21:47 +0000
Subject: "Socket must be already connected" err while fopen('http://...') on Apache
Groups: php.general 
Request: Send a blank email to php-general+get-139697@lists.php.net to get a copy of this message
Suppose I'm running PHP 4.0.0 on Apache 1.3.12 on a remote server (linked as a static module, OS is reported as AIX - kinda UNIX). My PHP script tries to fopen('http://somewhere.else.com/') while responding to HTTP request itself. I've got a "Socket must be already connected" error. Trying this on PHP 4.2.1 & Apache 2.0.36 on Win32 at home (localhost) works OK. I'm a little dummy in sockets, PLEASE GIVE ANY SOLUTION! Suppose I can't upgrade neither Apache nor PHP, but in the worst case I can use full UNIX utilities collection on that server, including PERL.

« previous php.general (#139697) next »