You are here: query apache for rewrite/alias rules « PHP Programming Language « IT news, forums, messages
query apache for rewrite/alias rules

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация