Posted by Charlie King on 09/28/26 11:37
On 12 Jan 2006 11:38:09 -0800, in
<1137094689.817396.152580@z14g2000cwz.googlegroups.com>
(comp.lang.php) "Al" <alexrussell101@gmail.com> wrote:
> Try $_SERVER['PHP_AUTH_USER'] maybe.
> And $_SERVER['PHP_AUTH_PW'] gets the password.
>
> See http://uk.php.net/manual/en/features.http-auth.php for full details.
It's worth noting that those will only retrieve .htaccess USER and PW
if PHP running as an Apache module, and not if it's running as CGI.
--
Charlie
[Back to original message]
|