DOCUMENT_ROOT - Undefined index
Posted: Mon Dec 09, 2002 6:42 pm
I'm trying to access the DOCUMENT_ROOT variable as listed under the _SERVER superglobal in the PHP manual. I keep getting the Undefined index error no matter what I do. I have tried both $_SERVER['DOCUMENT_ROOT'] and $DOCUMENT_ROOT (with registar_globals switched on).
I can access other _SERVER variables. I treid PHP_SELF and PATH_TRANSLATED which both worked fine. I'm completely stumped, has anyone else come across a similar problem or can think of a reason why this might be happening?
I can access other _SERVER variables. I treid PHP_SELF and PATH_TRANSLATED which both worked fine. I'm completely stumped, has anyone else come across a similar problem or can think of a reason why this might be happening?