Re: Question about $DOCUMENT_ROOT and include
| From: | Chris Shiflett | Date: | Wed, 05 Feb 2003 17:18:01 +0000 |
| Subject: | Re: Question about $DOCUMENT_ROOT and include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134438@lists.php.net to get a copy of this message | ||
--- Al <news@ridersite.org> 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 see if that works.
Chris