I just installed Apache 2 and PHP 5.0.4 on my Windows XP SP2 box, however when I run phpinfo() there is no PHP_AUTH_USER variable appearing on the page. Is there something I have to set on Apache or PHP to make PHP_AUTH_USER variable available?

Thanks.

    PHP_AUTH_USER and PHP_AUTH_PW are only available if you are running PHP as an Apache module (not as CGI).

      I did install it as Apache module. I didn't use binary installation file or anything like that. And when you do phpinfo() it says Apache 2.0 Handler under Server API. However, PHP_AUTH_USER variable still is not showing up there.

      Any ideas?

        Write a Reply...