Re: $DOCUMENT_ROOT

From: Date: Tue, 30 Jan 2001 01:22:45 +0000
Subject: Re: $DOCUMENT_ROOT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37200@lists.php.net to get a copy of this message
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

« previous php.general (#37200) next »