note 14041 added to function.realpath.php

From: Date: Sat, 14 Jul 2001 14:14:49 +0000
Subject: note 14041 added to function.realpath.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15374@lists.php.net to get a copy of this message
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. http://www.php.net/manual/en/function.realpath.php

« previous php.notes (#15374) next »