I have searched this forum as well as the internet for information regarding using the PHP_AUTH_USER & PHP_AUTH_PW variables when PHP is CGI rather than an Apache Module.
Everything that I have read [including information on php.net] has said that these variables DO NOT WORK when PHP is installed as CGI.
However, I have used these variables on an IIS server. I have an authentication function that sends the status unauthorized header and checks a database with the $PHP_AUTH_USER and PW variables, and PHP MUST run as CGI when used with IIS.
Now I want to use the same code on an Apache server that has PHP running as CGI...and it won't work.
Why are these variables available in the CGI in IIS and not Apache? Is there anyway to make them work in Apache?