note 77699 deleted from function.dirname by danbrown

From: Date: Sun, 20 Jul 2008 19:01:21 +0000
Subject: note 77699 deleted from function.dirname by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142256@lists.php.net to get a copy of this message
Note Submitter: Justin Brimm ---- Because <?php dirname() ?> doesn't support relative paths, I had to sit and think a bit about the easiest method to get the name of the directory above the current directory. I ended up coming with this little solution: <?php basename(realpath("..")) ?>

« previous php.notes (#142256) next »