note 14041 deleted from function.realpath by aidan
| From: | aidan@php.net | Date: | Sun, 29 Aug 2004 21:52:33 +0000 |
| Subject: | note 14041 deleted from function.realpath by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75626@lists.php.net to get a copy of this message | ||
Note Submitter: dfx at gmx dot at
----
As reply to evelk@dsv.nl and xcat@parks.lv...
If you're running PHP as Apache module, you can use apache_lookup_uri() to translate virtual
paths and filenames to real ones. For example...
$obj = apache_lookup_uri("/~username");
Then $obj->filename gives you "/home/username/public_html", or whatever it is in your
case.
I'm not aware of similar function for non-Apache installs.