Re: A question on how to get the root directory
| From: | Luke Welling | Date: | Sun, 13 May 2001 14:58:38 +0000 |
| Subject: | Re: A question on how to get the root directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52618@lists.php.net to get a copy of this message | ||
""C Benn"" <linuxsavant@home.com> wrote:
> MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP?
It
> gives you the ability to determain the root of the web site and use it as
a
> reference.
Is $DOCUMENT_ROOT what you are looking for.
To see a list of the predefined constants, look at the output of the
function phpinfo(). You will be able to see from what they are set to which
ones you want to use.
Cheers,
Luke Welling
----------
PHP and MySQL Web Development
by Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842/tangledwebdesign