I currently have my WAMP installation at:
C:/wamp/www/
My issue:
When calling $_SERVER['DOCUMENT_ROOT'];
from localhost/projectname1/test.php
- this outputs:
C:/wamp/www/
This is no good since path in my scripts will be wrong then. I this case I want Document root to output (which is my alias path for this dummy project):
C:\Users\SGS\Google Drive\_Work\projectname1\html/
All my working files are on google drive, so for each project I create an Apache alias, that points to the direct path of the project located on google drive folder.
Example of an alias created - projectname1.conf
:
Alias /projectname1/ "C:\Users\SGS\Google Drive\_Work\projectname1\html/"
<Directory "C:\Users\SGS\Google Drive\_Work\projectname1\html/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
This allow me to call the project with localhost/projectname1/
How do I get my document?