Bug #1682 Updated: file() and fread() still not working on http://server

From: Date: Fri, 09 Jul 1999 01:12:25 +0000
Subject: Bug #1682 Updated: file() and fread() still not working on http://server
Groups: php.dev 
Request: Send a blank email to php-dev+get-8226@lists.php.net to get a copy of this message
ID: 1682 User Update by: simon@airdmhor.gen.nz Status: Open Bug Type: Misbehaving function Description: file() and fread() still not working on http://server Even with the latest version of PHP, the socket stuff seems a bit broken. Code that used to work fine (on 3.0.6?) remains broken. eg: $url = "http://www.php.net/"; // this works readfile($url); // this works $fh=fopen($url,"r"); fpassthru($fh); // doesn't work for some sites (yes, I know it's an array) $foo=file($url); // doesn't work for some sites - incomplete result // consistant location. // eg $url="http://bugs.php.net/manual/" $fh=fopen($url,"r"); $foo=fread($fh,100000); close($fh); They all work fine if $url is set to a local file. Other tools on the same machine (lynx,netscape,wget) can all access the URLs fine. My PHP is compiled as an apache module, with track-vars, gd, sybase-ct, postgres, and xml; all of which seem to work fine. Full Bug description available at: http://bugs.php.net/?id=1682

« previous php.dev (#8226) next »