By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,504 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,504 IT Pros & Developers. It's quick & easy.

locating document root?

P: 2
where do I find the document root of a website
May 4 '10 #1
Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
http://example.com/ anything behind that is either a file or a subdirectory. if you mean the absolute path, you can get that from a script in the base directory using realpath() or $_SERVER['DOCUMENT_ROOT'].
May 4 '10 #2

P: 2
Thank you very much
May 4 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.