RE: [PHP] php and apache...single sign on
| From: | Jay Blanchard | Date: | Wed, 17 Sep 2003 19:24:05 +0000 |
| Subject: | RE: [PHP] php and apache...single sign on | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162913@lists.php.net to get a copy of this message | ||
[snip]
I would like to piggyback on an Apache realm/dialog authentication and
feed these credentials to a mysql connection (or connection to anything
else) in my php scripts.
Is there a way using the php Apache apis (seems like no) or via apache
itself to make these credentials available/visible to a php script?
I'm not sure if this presents a security risk as I trust the pages in my
web server to not be malevolent.
[/snip]
Should be $PHP_AUTH_USER and $PHP_AUTH_PW, see
http://us4.php.net/features.http-auth
Funny how the manual works for these things! ;)
Have a pleasant and productive day.