note 20615 added to function.is-dir

From: Date: Wed, 10 Apr 2002 05:21:29 +0000
Subject: note 20615 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-29043@lists.php.net to get a copy of this message
in response to: woodt@nospamicx.sPamfreenet, the error that you are receiving is from the filesystem not being able to access the file. this is why, for instance, if your home directory is chmod 700, whereas your public_html directory is 755, the webserver will return 'forbidden'. The user that is trying to access the file does not have execute permissions to the directory below it, therefore not even knowing if the directory exists. try it: mkdir ~/foo mkdir ~/foo/bar chmod 700 ~/foo chmod 711 ~ su - someone ls -ld /home/whoever/foo/bar ls: Permission Denied exit chmod 711 /home/whoever/foo su - someone ls -ld /home/whoever/foo/bar drwx-r-x-r-x 3 whoever whoever /home/whoever/foo/bar -- http://www.php.net/manual/en/function.is-dir.php http://master.php.net/manage/user-notes.php?action=edit+20615 http://master.php.net/manage/user-notes.php?action=delete+20615 http://master.php.net/manage/user-notes.php?action=reject+20615

« previous php.notes (#29043) next »