note 53383 added to function.is-link

From: Date: Tue, 31 May 2005 06:31:27 +0000
Subject: note 53383 added to function.is-link
Groups: php.notes 
Request: Send a blank email to php-notes+get-89655@lists.php.net to get a copy of this message
Why don't you just try is_dir("$pathname/.") instead? If $pathname is a directory, $pathname/. is itself and is a directory too. If $pathname is a link to a directory, then $pathname/. is the actual directory pointed at and is a directory as well. If $pathname is a link to a non-directory, then $pathname/. does not exist and returns FALSE, as it should. A lot easier, more readable and intuitive. ---- Manual Page -- http://www.php.net/manual/en/function.is-link.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53383 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53383&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53383&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53383&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53383&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53383&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53383&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89655) next »