This is a discussion on PHP_AUTH_USER is empty within the PHP Language forums, part of the PHP Programming Forums category; Hi, I use basic authentication in Apache. I like to use the global variable $_SERVER['PHP_AUTH_USER']. Unfortunately this variable is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
On Tue, 14 Dec 2004 22:59:20 +0100, Timo Steinbach <timo.news@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 / <andy@andyh.co.uk> / <http://www.andyh.co.uk> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool |
|
|||
|
Andy Hassall wrote:
> On Tue, 14 Dec 2004 22:59:20 +0100, Timo Steinbach <timo.news@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 |