note 49488 deleted from function.basename by tularis
| From: | tularis@php.net | Date: | Sun, 30 Jan 2005 10:09:26 +0000 |
| Subject: | note 49488 deleted from function.basename by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84199@lists.php.net to get a copy of this message | ||
Note Submitter: KOmaSHOOTER at gmx dot de
Reason: useless
----
If you want the parent directory you can use this
<?php
$_parenDir = join( array_slice( split( "/",dirname(
$_SERVER['PHP_SELF'])),0,-1),"/");
echo($_parenDir);
?