Re: PHP "ignoring" dotfiles, permissions
| From: | 1LT John W. Holmes | Date: | Mon, 29 Apr 2002 18:55:26 +0000 |
| Subject: | Re: PHP "ignoring" dotfiles, permissions | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95221@lists.php.net to get a copy of this message | ||
what if you do this?
require './.mydotfile.php';
---John Holmes...
----- Original Message -----
From: "Frank" <php_list1@u5.com>
To: <php-general@lists.php.net>
Sent: Monday, April 29, 2002 1:59 PM
Subject: Re: [PHP] PHP "ignoring" dotfiles, permissions
>
>
> >You know that "dot" files are hidden files ? ...
>
> Yes, but I think this only is in contexts where directories are scanned by
> some application "respecting" this method of hiding - and that they
> otherwise are normal files when addressed explicitly.
>
> However, there seems to be something else about dotfiles and PHP (or
> FreeBSD or my particular systems) I don't know.
>
> >If you want to use them, try to fread() them.
>
> Interesting idea. I will play with that.
>
> - - -
>
> Until something is clearer I recommend PHP-people using
>
> require '.mydotfile'; or
> include '.mydotfile'; (I tried that as well)
>
> to watch out for unexpected behavior and maybe entirely avoid this in
> PHP-solutions intended to be portable. At least at my computer it wouldn't
> work and it is a very mainstream one! :-)
>
> - - -
>
> BTW - there is no problem if I give the full path, like
>
> require '/usr/home/frank/public_html/php_test/.mydotfile';
>
> - - -
>
> Thanks to all for testing and suggestions.
>
> Frank
>
>
>
>
>
> >HTH Oliver
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>