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.....


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to