Get previous folder
| From: | Matt Palermo | Date: | Thu, 10 Jul 2003 12:03:46 +0000 |
| Subject: | Get previous folder | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154715@lists.php.net to get a copy of this message | ||
Anyone know how I can stip off the end of a folder location, so that it will
be a folder in the next level up? I want to turn something like this:
/path/to/folder/MyFolder/
into somthing like this:
/path/to/folder/
I just need to strip off the last folder and that is it. Can anyone help me
out? I appreciate it. Thanks.
Matt