note 15244 added to function.dirname
| From: | slavekjurkowski at msn dot com | Date: | Mon, 03 Sep 2001 07:48:16 +0000 |
| Subject: | note 15244 added to function.dirname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17554@lists.php.net to get a copy of this message | ||
the dir and filename can be easily obtained using the following metod
$url = explode("/",$PHP_SELF);
$filename = $url[sizeof($url)-1];
$dir = $url[sizeof($url)-2];
http://www.php.net/manual/en/function.dirname.php