note 17811 added to class.dir
| From: | erwinpogz at hotmail dot com | Date: | Wed, 26 Dec 2001 18:04:07 +0000 |
| Subject: | note 17811 added to class.dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23844@lists.php.net to get a copy of this message | ||
#this will display the current dirctory name... not the path
<?
$dirx = getcwd();
$pathlist=split("/","$dirx");
$curdir=$pathlist[count($pathlist)-1];
echo $curdir;
?>
--
http://www.php.net/manual/en/class.dir.php
http://master.php.net/manage/user-notes.php?action=edit+17811
http://master.php.net/manage/user-notes.php?action=delete+17811
http://master.php.net/manage/user-notes.php?action=reject+17811