Re: PHP "ignoring" dotfiles, permissions

From: Date: Mon, 29 Apr 2002 17:59:08 +0000
Subject: Re: PHP "ignoring" dotfiles, permissions
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-95207@lists.php.net to get a copy of this message
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


« previous php.general (#95207) next »