note 41666 deleted from function.realpath by tomsommer
| From: | tomsommer@php.net | Date: | Mon, 19 Apr 2004 06:24:55 +0000 |
| Subject: | note 41666 deleted from function.realpath by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68313@lists.php.net to get a copy of this message | ||
Note Submitter:
----
it works on windows XP :)
function get_path()
{
$script=explode("/",$_SERVER['PHP_SELF']);
$path= str_replace($script[sizeof($script)-1], "", $_SERVER["PATH_TRANSLATED"]);
return $path;
}