PHP_AUTH_USER is empty

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-14-2004
Timo Steinbach
 
Posts: n/a
Default PHP_AUTH_USER is empty

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
Reply With Quote
  #2 (permalink)  
Old 12-14-2004
Andy Hassall
 
Posts: n/a
Default Re: PHP_AUTH_USER is empty

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
Reply With Quote
  #3 (permalink)  
Old 12-15-2004
Timo Steinbach
 
Posts: n/a
Default Re: PHP_AUTH_USER is empty

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0