Missing Variable?

A

Anonymous

Guest
I'm getting this notice on my home Windows XP IIS Server,

Code:
Notice: Undefined index: DOCUMENT_ROOT in D:\My Files\Websites\Sites\TD.WS\exec\interpretor.php on line 16

From all the articles I read, this should be defined...

In php.ini its,

Code:
doc_root = ".;c:\inetpub\wwwroot"

On my Unix hosted server, it works fine... Anyone got any ideas?[/code]
 
alot of bla bla that didn't make sense cuz I didn't read it right ;)
 
What I meant was that on my Unix server, its supposed to be predefined, yet on my home Windows Server........ its not. Php.net told me to go in the php.ini file and fix this one line that I posted in the beginning of this thread, but its still empty.
 
alot of bla bla that didn't make sense cuz I didn't read it right ;)
 
Uh.. for the second time, you didn't answer my question at all.

1) I am defining $_SERVER['DOCUMENT_ROOT'] in php.ini
2) According to php.net documentation it should all work now
3) It doesn't
4) $_SERVER['DOCUMENT_ROOT'] is completely undefined

Has anyone else come accross this before? HELP!
 
hmm okay, I finally get it ;) hehe...yeah that's some security issue or something :) he does use it if you fill it out (you don't have to)...but you can't call it :)
 
Well I don't know why it was happening but that was on an IIS server. I switched to Apache 2 and I'm great now. :D
 
Back
Top