|
Posted by ChronoFish on 09/18/07 20:48
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
Navigation:
[Reply to this message]
|