Click to See Complete Forum and Search --> : Undefined variable...


Anon
07-30-2002, 09:18 AM
hello all

i've just installed php and apache on a win2000 system.

in general it works, but i get the following error:

Undefined variable: DOCUMENT_ROOT in ....

the line causing this error:

<?
include "$DOCUMENT_ROOT" . "cms/config.inc.php");
?>

somebody has an idea ?

tia
sandro

nostradamus
07-30-2002, 09:36 AM
where do you get "$DOCUMENT_ROOT" from?

Anon
07-30-2002, 09:43 AM
what do you mean exactly with "where do you get ... from?" ?

Anon
07-30-2002, 09:56 AM
well well well...is just found out that in php.ini the section "register_globals" is set to Off by default...grmbl...

after setting it to "on" is works, but there is still one variable which is unrecognized.

thanx anyway

sandro