Re: [PHP] $_SERVER['PHP_AUTH_USER'] has gone

2010-04-04 Thread Nilesh Govindarajan

On 04/04/10 22:04, Satz Klauer wrote:

Hi,

I'm running a system with Fedora 12 and Apache/PHP default installation.
That means PHP is used as module in Apache, it is NOT running as CGI.

Nevertheless for the latest PHP version installed there
$_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] and
$_SERVER['REMOTE_USER'] do no longer work, they are empty and I get a
warning that they do not exist. It looks for me like a big incompatible
change from one version of PHP to an other (which is a mess).

So how can I get them back? Or what is the intended way to access the HTTP
Basic Auth username and password?



Why not dump the $_SERVER array and check it out ?

--
Nilesh Govindarajan
Site  Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_SERVER['PHP_AUTH_USER'] has gone

2010-04-04 Thread shiplu
You can use, http://php.net/getallheaders function and parse the
authentication header.
For basic authentication, username and password are kept base64
encoded and separated by a :


Shiplu Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)



On Sun, Apr 4, 2010 at 10:19 PM, Satz Klauer satzkla...@googlemail.com wrote:
 Hi,

 I'm running a system with Fedora 12 and Apache/PHP default installation.
 That means PHP is used as module in Apache, it is NOT running as CGI.

 Nevertheless for the latest PHP version installed there
 $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] and
 $_SERVER['REMOTE_USER'] do no longer work, they are empty and I get a
 warning that they do not exist. It looks for me like a big incompatible
 change from one version of PHP to an other (which is a mess).

 So how can I get them back? Or what is the intended way to access the HTTP
 Basic Auth username and password?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php