When I call the following script ::
$filename = "$fd = fopen ($filename, "r"
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
echo $contents;
I get ::
Warning: php_hostconnect: connect failed in /web/holden/fread.php on line 4
........
But when I change the script to ::
$filename = "index.html";
$fd = fopen ($filename, "r"
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
echo $contents;
it works???
I'm running PHP4.0.6/Apache on a RS/6000 AIX4.3.3
I've set file perms to 777 on all files and dirs.
Is there something in php.ini to config or am I
doing something else wrong???
thanks
$filename = "$fd = fopen ($filename, "r"
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
echo $contents;
I get ::
Warning: php_hostconnect: connect failed in /web/holden/fread.php on line 4
........
But when I change the script to ::
$filename = "index.html";
$fd = fopen ($filename, "r"
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
echo $contents;
it works???
I'm running PHP4.0.6/Apache on a RS/6000 AIX4.3.3
I've set file perms to 777 on all files and dirs.
Is there something in php.ini to config or am I
doing something else wrong???
thanks