hadoob024 Posted March 2, 2006 Share Posted March 2, 2006 I have a quick question concerning the document root directory. All my PHP files are in the directory:/var/www/html/However, I also have several include files containing email addresses and MySQL login info in a separate directory. I was told that this is a good way to keep this information private and secure. These files are located in the following directory:/var/www/includes/Is this directory considered out of the document root? Or does the document root start at the "/var/www" level? Quote Link to comment https://forums.phpfreaks.com/topic/3938-which-dir-is-document-root/ Share on other sites More sharing options...
kanikilu Posted March 2, 2006 Share Posted March 2, 2006 You can use [code]echo $_SERVER['DOCUMENT_ROOT'];[/code] to find out what your server's document root is. Quote Link to comment https://forums.phpfreaks.com/topic/3938-which-dir-is-document-root/#findComment-13694 Share on other sites More sharing options...
hadoob024 Posted March 3, 2006 Author Share Posted March 3, 2006 Cool. Thanks man. Yeah, I think I knew what the answer was, I'm just getting paranoid here the closer we get to our launch date. Quote Link to comment https://forums.phpfreaks.com/topic/3938-which-dir-is-document-root/#findComment-13744 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.