This is likely a permissions issue rather than a PHP or file_exists() defect. Make sure your web server user (typically user "nobody") has permissions to /tmp and /tmp/test If the www user cannot read or execute your "test" directory, then it will not be able to stat a file in that directory either. Perhaps the file section of manual for should state that the web server user must have permissions to all directories in a path as well as files themself (repeatedly, if it doesn't already). -Joe <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > From: [EMAIL PROTECTED] > Operating system: linux 2.4.2 (red-hat 6) i686 > PHP version: 4.0.4pl1 > PHP Bug Type: Filesystem function related > Bug description: absolute path dosen't work with file_exists() > > file_exists () works fine with reletive paths, but seems to not work with absolute paths, or paths starting with '../' > > this works fine: > -------------------------------------------------------------- > if(file_exists(test/123)) { > die ("error message"); > } > > > this does not work: > -------------------------------------------------------------- > if(file_exists(/tmp/test/123)) { > die ("error message"); > } > > > > this does not work: > -------------------------------------------------------------- > if(file_exists(../../tmp/test/123)) { > die ("error message"); > } > > > thanks... atom > > > -- > Edit Bug report at: http://bugs.php.net/?id=10465&edit=1 > > > > -- > 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] > -- 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]