note 13887 deleted from function.dirname by sniper
| From: | sniper@php.net | Date: | Mon, 09 Dec 2002 06:03:39 +0000 |
| Subject: | note 13887 deleted from function.dirname by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40559@lists.php.net to get a copy of this message | ||
Sorry, the script I just published defines the HIGHEST directory (the root). It would therefore
return ~s751294 in the example above.
The correct script is as follows:
$language = $PHP_SELF;
$language = dirname($language);
$language = substr (strrchr ($language, "/"), 1);
echo "This is the lowest dir: $language";