PHP "ignoring" dotfiles
| From: | Frank | Date: | Mon, 29 Apr 2002 16:19:56 +0000 |
| Subject: | PHP "ignoring" dotfiles | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95190@lists.php.net to get a copy of this message | ||
Hello list,
My PHP acts unexpected when requiring files with a leading dot. I'm on FreeBSD 4.3
In a directory I have the following two files:
.mydotfile.php:
<?php
echo "I am here!";
?>
myfile.php:
<?php
require '.mydotfile.php';
?>
When I run myfile.php there is no output!
If I rename .mydotfile to something without a leading dot and change the name in the require-statement it writes "I am here!", as expected.
If I try to require a non-existing dot file PHP complains, as expected.
So - why don't I get an output from the run when written as above?
I know that it has worked as expected earlier, but after an upgrade (I think) I now get this strange problem. I have tried to play with the include_path but without result.
Anyone have a clue?
Best,
Frank