By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

PHP_AUTH_USER is empty

P: n/a
Hi,

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?

Thanks
Timo
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Tue, 14 Dec 2004 22:59:20 +0100, Timo Steinbach <ti*******@xenomorph.de>
wrote:
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?


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

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2

P: n/a
Andy Hassall wrote:
On Tue, 14 Dec 2004 22:59:20 +0100, Timo Steinbach <ti*******@xenomorph.de>
wrote:

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?

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


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-jpeg-dir=/usr/local/lib'
'--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/libphp4.so

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

Timo
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.