PHP_AUTH_USER is empty

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I use basic authentication in Apache. I like to use the global variable
$_SERVER['PHP_AUTH_USER']. Unfortunately this variable is empty/no
availabe. Same with PHP_AUTH_PW. AUTH_TYPE is working and states
"Basic". Can somebody help me with this?


Re: PHP_AUTH_USER is empty


Quoted text here. Click to load it

 How are you running PHP - as a PHP module? What version?

< Space: disk usage analysis tool

Re: PHP_AUTH_USER is empty

Andy Hassall wrote:
Quoted text here. Click to load it

PHP Version 4.3.9

'./configure' '--prefix=/usr/local/php-for-apache' '--with-zip'
'--with-png-dir=/usr/local/include' '--enable-exif' '--with-bz2'
'--enable-filepro' '--enable-dio' '--enable-sysvsem=yes'
'--enable-sysvshm=yes' '--enable-url-includes' '--enable-versioning'
'--with-apxs=/usr/local/apache/bin/apxs' '--disable-debug' '--with-ftp'
'--enable-ftp' '--enable-inline-optimization' '--enable-magic-quotes'
'--enable-mm=shared' '--enable-safe-mode' '--enable-track-vars'
'--enable-trans-sid' '--enable-wddx=shared' '--with-gd'
'--with-mysql=/usr/local/mysql' '--with-zlib'

LoadModule php4_module        libexec/

Loaded Modules
mod_setenvif, mod_auth, mod_access, mod_alias, mod_userdir, mod_actions,
mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include,
mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env,
mod_php4, mod_so, http_core


Site Timeline