note 28591 added to function.is-dir

From: Date: Fri, 17 Jan 2003 14:44:41 +0000
Subject: note 28591 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-42278@lists.php.net to get a copy of this message
It should be clarified that is_dir follows symlinks, so if you need to filter out symlinked directories, you have to check to see if it's a symlink explicitly. Something along the lines of if (is_dir($dir) && !is_link($dir)) is needed. -- http://www.php.net/manual/en/function.is-dir.php http://master.php.net/manage/user-notes.php?action=edit+28591 http://master.php.net/manage/user-notes.php?action=delete+28591 http://master.php.net/manage/user-notes.php?action=reject+28591

« previous php.notes (#42278) next »