Re: PHP "ignoring" dotfiles
| From: | 1LT John W. Holmes | Date: | Mon, 29 Apr 2002 16:36:11 +0000 |
| Subject: | Re: PHP "ignoring" dotfiles | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95192@lists.php.net to get a copy of this message | ||
Works fine on WinXP, PHP 4.1.1, IIS 5.1
---John Holmes...
----- Original Message -----
From: "Frank" <php_list1@u5.com>
To: <php-general@lists.php.net>
Sent: Monday, April 29, 2002 12:19 PM
Subject: [PHP] PHP "ignoring" dotfiles
>
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>