<br> in my post
| From: | KOmaSHOOTER | Date: | Sun, 30 Jan 2005 17:08:30 +0000 |
| Subject: | <br> in my post | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969366271@lists.php.net to get a copy of this message | ||
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:KOmaSHOOTER@gmx.de