I have the following line in my code:
$strIncludePrefix - $DOCUMENT_ROOT."inc/";
I keep getting the error:
'Notice: Undefined variable: DOCUMENT_ROOT in F:\php_www\includes\global.inc.php on line 21' when I run it.
I have also tried using $_SERVER['DOCUMENT_ROOT'] and I get the same thing. I am using PHP 4.3.1. Is there any reason why $DOCUMENT_ROOT would not work?
Please note I have auto globals turned on.
Any helps appreciated.
Thanks, Chris,