I'm having a problem using file_exists with an absolute path and I can
not figure out why.
I tried the exact example that is on www.php.net ...
<?php
$filename = '/path/to/foo.txt';
if (file_exists($f ilename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
?>
.... and it does not work.
Here it is ...
http://216.12.100.243/test.php
You can see phpinfo() on that server here ...
http://216.12.100.243/phpinfo.php
If I change the first line to ...
$filename = 'path/to/foo.txt';
....it works fine, but I really would like to use an absolute path.
Any help would be greatly appreciated.
Thanks