Question about $DOCUMENT_ROOT and include
| From: | Al | Date: | Wed, 05 Feb 2003 17:00:46 +0000 |
| Subject: | Question about $DOCUMENT_ROOT and include | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134435@lists.php.net to get a copy of this message | ||
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 fine
echo "$DOCUMENT_ROOT/root_functionsT.php";
// shows /www/r/myID/htdocs/root_functionsT.php
php 4.2.3 apache
Actually, I'm trying to get away from using the full absolute path for includes but have not been able to get the htaccess declaration to work.
php_value include_dir ".:/www/r/myID/htdocs/" [I've tried every syntax variation I can find and think of]
many thanks.....