ID: 10466
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Filesystem function related
Description: hidden '.' files don't work with file_exists()
single quotes solved it.
thanks...
Previous Comments:
---------------------------------------------------------------------------
[2001-04-23 18:46:50] [EMAIL PROTECTED]
single quotes works fine. thanks!
also, could be a bug, but i got it to work by having it ~follow~ a symbolic link.
it didn't check that the link existed, it checked the the place the link pointed to
existed.
could be a security issue.
thanks... atom
---------------------------------------------------------------------------
[2001-04-23 17:13:21] [EMAIL PROTECTED]
Usually we like to have more information than 'doesn't work'. :)
But for the moment, what happens if you quote your strings?
i.e.:
if (file_exists('/file/names/must/be/.quoted.txt')) {
. . .
}
---------------------------------------------------------------------------
[2001-04-23 17:02:22] [EMAIL PROTECTED]
file_exists () seems to get confused with 'hidden' files, starting with '.' (dot).
this works fine:
--------------------------------------------------------------
if(file_exists(test/normal-file)) {
die ("error message");
}
this does not work:
--------------------------------------------------------------
if(file_exists(test/.hidden-file)) {
die ("error message");
}
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10466
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]