Re: Bug #10465: absolute path dosen't work with file_exists()

From: Date: Tue, 24 Apr 2001 01:38:14 +0000
Subject: Re: Bug #10465: absolute path dosen't work with file_exists()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-52249@lists.php.net to get a copy of this message
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 <atom@suspicious.org> wrote in message news:20010423205222.24386.qmail@php2.chek.com... > From: atom@suspicious.org > 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: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#52249) next »