Thanks for the feedback
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
--- 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 fine
Try $_SERVER['DOCUMENT_ROOT'] and s
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_functio
3 matches
Mail list logo