I'm writing a script that would parse remote files, however for some reason the fopen function doesn't work on remote files.. it will only returns attribute (like r, or rb)..
I'm testing my script under WinNT 4.0 sp6, PHP4.06 / Apache1.3.20 / ActivePerl5.6 / MySQL3.23
here is the part if my which doesn't work
the file testdb.txt exists.. but it doesn't matter,even if the file doesn't exist or is at another server it just won't work.. only local files as long as i don't add http:// 
$filename = "http://127.0.0.1/testdb/test.txt";
$fd = @fopen($filename ,"r");
if (!$fd) {
$error.="Unable to open file: $filename.<BR>\n";
}
else{
$contents = fread ($fd, filesize ($filename));
$file = split("\n", $contents);
fclose ($fd);
echo "<PRE>";
print_r($file);
echo "</PRE>";
}
I'm testing my script under WinNT 4.0 sp6, PHP4.06 / Apache1.3.20 / ActivePerl5.6 / MySQL3.23
here is the part if my which doesn't work


$filename = "http://127.0.0.1/testdb/test.txt";
$fd = @fopen($filename ,"r");
if (!$fd) {
$error.="Unable to open file: $filename.<BR>\n";
}
else{
$contents = fread ($fd, filesize ($filename));
$file = split("\n", $contents);
fclose ($fd);
echo "<PRE>";
print_r($file);
echo "</PRE>";
}
Comment