Re: Getting The Document Root
| From: | Joe Henry | Date: | Thu, 02 Feb 2006 16:13:22 +0000 |
| Subject: | Re: Getting The Document Root | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229737@lists.php.net to get a copy of this message | ||
you could try pathinfo()
http://us3.php.net/pathinfo
On Feb 2, 2006, at 8:59 AM, Jeremy Privett wrote:
John Nichel wrote:$_SERVER['DOCUMENT_ROOT'] http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serverNope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] contains /home/jeremy/public_html/test/ ... All I want is to the public_html part. --Jeremy Privett [ http://www.jeremyprivett.com ] Founder - Lead Software Developer - Hosting Systems Administrator Omega Vortex (http://www.omegavortex.com) --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php