note 13761 added to function.realpath.php
| From: | evelk at dsv dot nl | Date: | Mon, 02 Jul 2001 07:46:27 +0000 |
| Subject: | note 13761 added to function.realpath.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14856@lists.php.net to get a copy of this message | ||
$Mapped_Path = $DOCUMENT_ROOT . "/bla"; does NOT give you the physical path if you have a
URl like: /~username/bla
$Mapped_Path = $DOCUMENT_ROOT . "/~username/bla" gives: /var/www/~username/bla instead of:
/home/username/public_html/bla
Any other solution ?
http://www.php.net/manual/en/function.realpath.php