note 56721 added to function.is-dir

From: Date: Tue, 13 Sep 2005 12:46:00 +0000
Subject: note 56721 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-95114@lists.php.net to get a copy of this message
to jeswanth at gmail dot com is_dir *does* work properly, what you should be aware of is that the current working directory is that of the *requested* script and not of the *executed* one. E.g., let's say you have /file.php /some_dir/your_code.php /some_dir/valid_user.txt where your_code.php contains the code you posted, and file.php includes somedir/your_code.php. If you request /file.php then php looks for /valid_user.txt, not for /some_dir/valid_user.txt Of course the file is not found, and the else-part is executed. ---- Manual Page -- http://www.php.net/manual/en/function.is-dir.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56721 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56721&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56721&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56721&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56721&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56721&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56721&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56721&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95114) next »