Avatar of davidtrina
davidtrina

asked on 

Undefined Index when using $_SERVER

I am receiving the following error:

Notice: Undefinded index:
I receive this error only on these variables
      $_Server["PHP_AUTH_USER"]
      $_Server["PHP_AUTH_PW"]
      $_Server["AUTH_TYPE"]
      $_Server["HTTP_ACCEPT_CHARSET"]
      $_Server["HTTP_REFERER"]
      $_Server["REMOTE_HOST"]
I have tested all the other Server Variables and they work fine.
       i.e.
          $_Server["REMOTE_PORT"]
          $_Server["SERVER_PORT"]
      and so on...
      these have no problems

I am running Apache_2.0.47-win32-x86-no_ssl Server on Windows NT
and PHP version 4.3.3
I have altered C:\Winnt\php.ini to
     register_globals = On
I have also tried to use HTTP_SERVER_VARS instead of _SERVER and it returns the exact same errors on the same Variables
I have also tried $PHP_AUTH_USER does not work either
I have found several places where people have said they were having the same problem but the solutions did not work for me.
Please help!
PHP

Avatar of undefined
Last Comment
aolXFT

8/22/2022 - Mon