Thread: PHP doc_root
View Single Post
Old 03-26-2011, 09:19 PM   #1 (permalink)
captainmerton
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default PHP doc_root

I am looking for guidance on how to change the document root setting for a website i have. in my HTDOCS folder in my installation of Apache i have several folders each for a different web project. However when when calling php global variables like $_SERVER['PHP_SELF'] i get a return of /holidaywebsite/index.php when what i want back is /index.php

I assume this is just a case of resetting the root in php? Can i do this in the php.ini file and if so how if, for example, i have my web project in a folder called holidaywebsite?

Thanks in advance for any help.
captainmerton is offline  
Reply With Quote