Hello phpdoc,
Sorry again
i have a <br> in my post
could you remove it ?
--------------------------------------
quote:
if you want the name of the parent directory<br>
<?php
$_parenDir_path = join(array_slice(split( "/"
,dirname($_SERVER['PHP_SELF'])),0,-1),"/").'/'; // returns the full path to the
parent dir
$_parenDir = basename ($_parenDir_path,"/"); // returns only the name of the
parent dir
// or
$_parenDir2 = array_pop(array_slice(split( "/"
,dirname($_SERVER['PHP_SELF'])),0,-1)); // returns also only the name of the
parent dir
echo('$_parenDir_path = '.$_parenDir_path.'<br>');
echo('$_parenDir = '.$_parenDir.'<br>');
echo('$_parenDir2 = '.$_parenDir2.'<br>');
--------------------------------------
i also posted it again without <br> you can delete that second one
http://de3.php.net/basename
--
Best regards,
KOmaSHOOTER mailto:[EMAIL PROTECTED]