note 31720 added to function.is-dir

From: Date: Thu, 01 May 2003 12:12:52 +0000
Subject: note 31720 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-47345@lists.php.net to get a copy of this message
$path="/home/user/www/newdir"; if (is_dir("$path/")) // add the extra slash '/' { //yes } else { //no } in my linuxbox the path needs to end in / so it can detect if its a directory. -- http://www.php.net/manual/en/function.is-dir.php http://master.php.net/manage/user-notes.php?action=edit+31720 http://master.php.net/manage/user-notes.php?action=delete+31720 http://master.php.net/manage/user-notes.php?action=reject+31720

« previous php.notes (#47345) next »