PHP_AUTH_USER is empty

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Timo Steinbach

    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
  • Andy Hassall

    #2
    Re: PHP_AUTH_USER is empty

    On Tue, 14 Dec 2004 22:59:20 +0100, Timo Steinbach <timo.news@xeno morph.de>
    wrote:
    [color=blue]
    >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?[/color]

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

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Timo Steinbach

      #3
      Re: PHP_AUTH_USER is empty

      Andy Hassall wrote:[color=blue]
      > On Tue, 14 Dec 2004 22:59:20 +0100, Timo Steinbach <timo.news@xeno morph.de>
      > wrote:
      >
      >[color=green]
      >>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?[/color]
      >
      >
      > How are you running PHP - as a PHP module? What version?
      >[/color]

      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

      Comment

      Working...