note 17730 added to function.dirname
| From: | miqsxNOSPAM at poczta dot onet dot pl | Date: | Fri, 21 Dec 2001 09:32:37 +0000 |
| Subject: | note 17730 added to function.dirname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23736@lists.php.net to get a copy of this message | ||
If you just want your actual PATH it's good to use this:
<?
$abspath=ereg_replace("\\\\","/",__FILE__);
$abspath = dirname ($abspath);
print "$abspath";
?>
It wonks in UNIX & WIN
--
http://www.php.net/manual/en/function.dirname.php
http://master.php.net/manage/user-notes.php?action=edit+17730
http://master.php.net/manage/user-notes.php?action=delete+17730
http://master.php.net/manage/user-notes.php?action=reject+17730