realpath-ing alias folder
Posted 25 July 2006 - 11:15 AM
I have set an alias in the apache conf as follows:
Alias /my_root/ "D:/Apache/hameed/"
My Apache root "/" folder is "D:/Apache/"
Now I have created test.php in the folder "D:/Apache/testing/". The content is as follows:
The output is blank instead of "D:/Apache/hameed/"
Please help me and let me know what I am missing here.
Posted 25 July 2006 - 11:28 AM
Posted 25 July 2006 - 12:28 PM
Thanks for your reply. But how can I work around my issue? It is possible at all?
Posted 25 July 2006 - 02:10 PM
define('MY_ROOT', 'D:/Apache/hameed/'); echo MY_ROOT;When creating/using constants they must be in uppercase.
Then when you want to use MY_ROOT you do this:
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users