query apache for rewrite/alias rules
am 18.09.2007 22:48:12 von ChronoFishHello,
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