note 118994 added to function.is-dir
| From: | BjrnK. | Date: | Mon, 14 Mar 2016 15:17:58 +0000 |
| Subject: | note 118994 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205159@lists.php.net to get a copy of this message | ||
Note that this functions follows symbolic links. It will return true if the file is actually a
symlink that points to a directory.
An example:
<php
symlink(".", "testlink");
var_dump(is_dir("testlink"));
unlink("testlink");
?>
Prints out:
bool(true)
(Windows Note: Under recent versions of Windows you can set symlinks as long as you're
administrator, but you cannot remove directory symlinks with "unlink()", you will have to
use "rmdir testlink" from the shell to get rid of it.)
----
Server IP: 72.52.91.14
Probable Submitter: 87.155.245.50
----
Manual Page -- http://php.net/manual/en/function.is-dir.php
Edit -- https://master.php.net/note/edit/118994
Del: integrated -- https://master.php.net/note/delete/118994/integrated
Del: useless -- https://master.php.net/note/delete/118994/useless
Del: bad code -- https://master.php.net/note/delete/118994/bad+code
Del: spam -- https://master.php.net/note/delete/118994/spam
Del: non-english -- https://master.php.net/note/delete/118994/non-english
Del: in docs -- https://master.php.net/note/delete/118994/in+docs
Del: other reasons-- https://master.php.net/note/delete/118994
Reject -- https://master.php.net/note/reject/118994
Search -- https://master.php.net/manage/user-notes.php