note 23734 deleted from function.dirname by dams
| From: | dams@php.net | Date: | Tue, 30 Jul 2002 00:46:55 +0000 |
| Subject: | note 23734 deleted from function.dirname by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33944@lists.php.net to get a copy of this message | ||
As mentioned in the first posting, dirname() does not recognize /foo/ as a dir.
While in some cases this may be quite annoying, it can also be considered a feature:
You can easily go up the path with
dirname(dirname("/foo/bar/test.php"));
This will return "/foo".