This is a discussion on query apache for rewrite/alias rules within the PHP Language forums, part of the PHP Programming Forums category; Hello, Is there a way for PHP to "ask" apache for the result of a rewrite or alias ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
Is there a way for PHP to "ask" apache for the result of a rewrite or alias rule? For instance, I have an Apache rule that alias /backup to / systemBackup/archive1 Does PHP/Apache have any mechanism to retrieve the actual file system location of /backup? I would envision something like this: <?= getApacheRealPath("http://localhost/backup/someFile") ?> to return /systemBackup/archive1/someFile and <?= getApacheRealPath("http://localhost) == $_SERVER['DOCUMENT_ROOT) ? 'true' : 'false' ?> to return true Thoughts? Thanks, CF |