I wrote a very simple PHP script that I put into /var/www/html, into /var/www/html/tools and to /var/www/html/tools/app called test.php:
<?php
// test.php
echo 'Hello ';
echo''Is file /var/www/html/tools/app/include/constants.inc.php? ';
print_r(is_file('/var/www/html/tools/app/include/constants.inc.php'));
echo ' Goodbye';
?>
Results were FALSE for every instance of test.php I ran. However, I go to the terminal to prove that that file "constants.inc.php" not only exists, but has permissions of 0777 and has content that I can view using any text editing program I want.
I even tried pulling up "constants.inc.php" directly, only to get a 403 Forbidden, even though the file has permissions of 0777.
What on earth?
Environment: Fedora Core 4, PHP 4.3.11, PHP 5.0.4 and Windows XP
Phil