I have a problem with a very basic script which reads a remote file line by line and outputs it on the screen:
$myfile=fopen("some.url.somewhere","r",1);
if($myfile)
{
while(!feof($myfile))
{
$myline=fgets($myfile,4096);
echo $myline;
}
fclose($myfile);
}
On a PHP3 server this script works fine, but on another server that runs PHP4 it returns a warning:
Transport endpoint is not connected
What am I doing wrong?