Re: [Q] Using $_SERVER['DOCUMENT_ROOT'] correctly

From: Date: Tue, 13 Jul 2004 04:01:38 +0000
Subject: Re: [Q] Using $_SERVER['DOCUMENT_ROOT'] correctly
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190313@lists.php.net to get a copy of this message
Is your common script in the server root? If so then you can use something like this in the file: define('WWWROOT', basename(__FILE__));

« previous php.general (#190313) next »