query apache for rewrite/alias rules

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-18-2007
ChronoFish
 
Posts: n/a
Default query apache for rewrite/alias rules

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:31 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0