I'm having similar oddness... I have a program that opens a web page and if there's a redirect, loops around and opens the new page. Exactly the same code is executed twice (so I know it's opening, reading, and closing the page)... yet the second time I get a warning-- for "No error"! Check it out, the last line is the one PHP generates:
opening http://catalog.lapl.org:80/cgi-bin/cw_cgi?6005+REDIRX+doSearch_965...
found redirect: http://catalog.lapl.org:80/cgi-bin/cw_cgi?23087+doSearch+965...
opening http://catalog.lapl.org:80/cgi-bin/cw_cgi?23087+doSearch+965...
Warning: fopen("http://catalog.lapl.org:80/cgi-bin/cw_cgi?23087+doSearch+965","r") - No error in http_post.php on line 233
If it makes a different, my code to read the file (which, like I said, works great the 1st time):
$fh = fopen($url, "r");
if(!$fh){ return 0; }
$retstr="";
while(!feof($fh)){
$resp=fgets($fh,80);
$retstr.=$resp;
//echo $resp;
}
fclose($fh);
What's goin' on here?!
Eric