Document root
| From: | Mukul Sabharwal | Date: | Wed, 13 Aug 2003 04:01:51 +0000 |
| Subject: | Document root | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159390@lists.php.net to get a copy of this message | ||
$_SERVER[REQUEST_URI] , $_SERVER[SCRIPT_NAME]
They give abs. web server paths ...
like /php/scripts/file.php
HTH
Mukul Sabharwal
http://www.devhome.org
----- Original Message -----
From: "Mukta Telang" <mukta@darya.nio.org>
To: "php" <php-general@lists.php.net>
Sent: Tuesday, August 12, 2003 11:27 AM
Subject: [PHP] Document root
> Hi!
> Is there any constant in php like $DOCUMENT_ROOT
which holds path to the
> "Document root" of the server?
> I want to do something like this:
> $path=$DOCUMENT_ROOT."/files/one.php";
> echo "<a href=\"$path\">";
> Thanks in advance,
> Mukta
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
Mukul Sabharwal (mjsabby@yahoo.com)
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com