note 20138 added to class.dir
| From: | erstam at gmx dot de | Date: | Sat, 23 Mar 2002 19:18:43 +0000 |
| Subject: | note 20138 added to class.dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28126@lists.php.net to get a copy of this message | ||
I just noticed, that when opening a directory containing a link to the directory above
(".."), $dir->path returns the directory as opened, not parsed in any way, e.g.:
$d = dir("/way/to/go/..");
echo ($d->path);
returns "/way/to/go/.." not "/way/to".
--
http://www.php.net/manual/en/class.dir.php
http://master.php.net/manage/user-notes.php?action=edit+20138
http://master.php.net/manage/user-notes.php?action=delete+20138
http://master.php.net/manage/user-notes.php?action=reject+20138