Re: getting the phsyical path

From: Date: Fri, 03 Dec 2004 19:55:30 +0000
Subject: Re: getting the phsyical path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203463@lists.php.net to get a copy of this message
Josh Howe wrote:
Sorry if this is a dumb question. Is there a way in php to get the physical path the document root of my website? I want to open a file in the root of my web server, i.e. "/", but I won't always know what the physical path to the web root is, and it will vary depending on the machine the web app is running on. I've tried using "realpath" (e.g. realpath("/")) but it doesn't really work. Thanks.
$_SERVER['DOCUMENT_ROOT'] -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#203463) next »