Hey,
I just stried accessing the url you're having problems with and here's the results:
<?php
error_reporting( E_ERROR | E_WARNING | E_PARSE );
$url= "http://www.etrse.com/tmsid/cgi-bin/np/viewnews.cgi?category=1&id=1029482159";
$fp = fopen($url,"r");
if( ! $fp )
{
die("warning: failed to connect to $url");
}
else
{
while( ! feof($fp) )
{
$str .= fgets($fp,4096);
}
if( ! $str )
{
die("warning: \$str is empty!");
}
}
if( ! fclose($fp) )
{
die("warning: could not close \$fp!");
}
echo "<html>\n<head>\n";
echo "<base href=\"http://www.etrse.com/\" />\n";
echo "</head>\n</html>\n";
echo $str."\n\n";
?>
output from the php script:
Warning: fopen("http://www.etrse.com/tmsid/cgi-bin/np/viewnews.cgi?category=1&id=1029482159", "r") - No error in D:\People\Elfyn\Website\test_fopen_url.php on line 5
warning: failed to connect to [url]http://www.etrse.com/tmsid/cgi-bin/np/viewnews.cgi?category=1&id=1029482159[/url]
output from url 'http://www.etrse.com/tmsid/cgi-bin/np/viewnews.cgi?category=1&id=1029482159':
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Can't open perl script "d:\html\users\etrsecom\html\tmsid\cgi-bin\np\viewnews.cgi": No such file or directory
IO beleive this is your problem...