I have setup WAMP on a spare box. The site physically is located at:
"c:/wamp/www/MYSITE/public_html/"
The apache doc root has been set to:
C:\wamp\www\MYSITE\public_html
If i have a file in the public_html folder, I can include('/assets/includes/global.php')
But if the file is 1 folder in, such as public_html/myfolder, I cannot include as above...
It seems that the first / in the include is mapping all the way back to C: so I need to include('/wamp/www/MYSITE/public_html/assets/includes/global.php');
What gives? Surely it should just map back to c:/wamp/www/MYSITE/public_html/
Question
+Dick Montage Subscriber²
I have setup WAMP on a spare box. The site physically is located at:
"c:/wamp/www/MYSITE/public_html/"
The apache doc root has been set to:
C:\wamp\www\MYSITE\public_html
If i have a file in the public_html folder, I can include('/assets/includes/global.php')
But if the file is 1 folder in, such as public_html/myfolder, I cannot include as above...
It seems that the first / in the include is mapping all the way back to C: so I need to include('/wamp/www/MYSITE/public_html/assets/includes/global.php');
What gives? Surely it should just map back to c:/wamp/www/MYSITE/public_html/
?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts