That works if I leave off the quotes from around DOCUMENT_ROOT. Simply
$_SERVER[DOCUMENT_ROOT]
I'd really like to get this working in the htaccess file.
php_value include_dir ".:/www/r/myID/htdocs/"
I redoing a site with several php files in assorted directories and would like be certain things will work if we move the site to a new host.
Several references I've found suggest staying away from using $DOCUMENT_ROOT since it can be different on virtual hosts.
Chris Shiflett wrote:
--- Al <[EMAIL PROTECTED]> wrote:Why does the absolute path work and not document_root?include ("$DOCUMENT_ROOT/root_functionsT.php"); //error message says function undefined include ("/www/r/myID/htdocs/root_functions.php"); // Works just fineTry $_SERVER['DOCUMENT_ROOT'] and see if that works. Chris
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php