note 72617 deleted from function.dirname by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 19:02:21 +0000 |
| Subject: | note 72617 deleted from function.dirname by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142257@lists.php.net to get a copy of this message | ||
Note Submitter: hans111 at yahoo dot com
----
Simple way to find out the current directory name:
<?php
function my_dir(){
$arfdn = explode('/', dirname($_SERVER['PHP_SELF']));
return end($arfdn);
}
?>