note 49490 deleted from function.basename by tularis

From: Date: Sun, 30 Jan 2005 10:09:08 +0000
Subject: note 49490 deleted from function.basename by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84200@lists.php.net to get a copy of this message
Note Submitter: KOmaSHOOTER at gmx dot de Reason: useless ---- and another version for getting the parent directory <?php $_parenDir = join(array_slice(split( "/" ,dirname($_SERVER['PHP_SELF'])),0,-1),"/"); // full path to the parent directory $_parenDir = basename ($_parenDir,"/"); // name of directory ?>

« previous php.notes (#84200) next »