note 15031 added to function.pathinfo.php
| From: | m-symons at home dot com | Date: | Fri, 24 Aug 2001 23:01:45 +0000 |
| Subject: | note 15031 added to function.pathinfo.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17100@lists.php.net to get a copy of this message | ||
And, of course, to account for the problem noted in the first post whereby calling a directory, not
a file, messes with the output of pathinfo(), you can include the following test:
if($pathinfo[extension] == "") {
$deep++;
}
Ooops...sorry for missing that.
http://www.php.net/manual/en/function.pathinfo.php