note 103695 deleted from function.realpath by danbrown
| From: | danbrown@php.net | Date: | Thu, 28 Apr 2011 15:58:22 +0000 |
| Subject: | note 103695 deleted from function.realpath by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179236@lists.php.net to get a copy of this message | ||
Note Submitter: user at frederickrone dot ger
----
Regarding the function getRelativePath I have a simple suggestion:
str_replace($_SERVER['DOCUMENT_ROOT'], '', realpath($yourDocument)
.'/'. basename($yourDocument));