RE: [PHP] $DOCUMENT_ROOT
| From: | Jonathan Sharp | Date: | Tue, 30 Jan 2001 01:33:44 +0000 |
| Subject: | RE: [PHP] $DOCUMENT_ROOT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37203@lists.php.net to get a copy of this message | ||
define('DOCUMENT_ROOT', 'C:\path\to\document\root');
NOTE! This would define a global variable to all your scripts without the $
dollar sign.
include(DOCUMENT_ROOT."/folder/file.php");
-Jonathan Sharp
Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: 4257661398@page.nextel.com
-----Original Message-----
From: CC Zona [mailto:cczona@nospam.invalid]
Sent: Monday, January 29, 2001 5:23 PM
To: php-general@lists.php.net
Subject: Re: [PHP] $DOCUMENT_ROOT
In article <039901c08a48$3d4b5740$c0fe640a@resource.com>,
tmiller@creativegeneration.com ("Toby Miller") wrote:
> Whenever I include files in Apache I always do it like this:
>
> include($DOCUMENT ROOT."/folder/file.php");
>
> However, now I am doing a site in IIS and I do not have $DOCUMENT ROOT at
> my disposal. What do most of you usually do to workaround this? Aside from
> installing Apache and Linux and bypassing the whole Windows thing :)
Why not either include the doc root in the include_path of php.ini? Or
define you own DOCUMENT_ROOT constant?
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net