Getting The Document Root
| From: | Jeremy Privett | Date: | Thu, 02 Feb 2006 13:14:22 +0000 |
| Subject: | Getting The Document Root | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-229705@lists.php.net to get a copy of this message | ||
I'm looking for a method that would be able to extract the user's true document root (e.g. /home/jeremy/public_html/) so that I can use it for some filesystem scanning functions. I'm trying to avoid hard-coding supported document roots in favor of being able to dynamically detect it, but nothing is coming to mind. I thought I would consult some of the minds of the mailing list for advice. Any ideas or code would be greatly appreciated.
--
Jeremy Privett [ http://www.jeremyprivett.com ]
Founder - Lead Software Developer - Hosting Systems Administrator
Omega Vortex
(http://www.omegavortex.com)