Re: Re: $_SERVER['PHP_AUTH_USER'] has gone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/06/10 21:27, Satz Klauer wrote:
var_dump($_SERVER) gives me several data, the following arrayindices contain
data:

"HTTPS", "SSL_TLS_SNI", "HTTP_USER_AGENT", "HTTP_HOST", "HTTP_ACCEPT",
"HTTP_ACCEPT_LANGUAGE", "HTTP_ACCEPT_CHARSET", "HTTP_ACCEPT_ENCODING",
"HTTP_REFERER", "HTTP_COOKIE", "HTTP_COOKIE2", "HTTP_CONNECTION", "HTTP_TE",
"PATH", "SERVER_SIGNATURE", "SERVER_SOFTWARE", "SERVER_NAME", "SERVER_ADDR",
"SERVER_PORT", "REMOTE_HOST", "REMOTE_ADDR", "DOCUMENT_ROOT",
"SERVER_ADMIN", "SCRIPT_FILENAME", "REMOTE_PORT", "GATEWAY_INTERFACE" =>
string(7) "CGI/1.1" (??? it is running as apache-module ???,
"SERVER_PROTOCOL", "REQUEST_METHOD", "QUERY_STRING", "REQUEST_URI",
"SCRIPT_NAME", "PHP_SELF", "REQUEST_TIME"

Unfortunately not Auth-data.

var_dump($_ENV) tells me (partially anonymised):

["HOSTNAME"]=>  string(24) "xxx.yyy.de"
["TERM"]=>  string(5) "xterm"
["SHELL"]=>  string(9) "/bin/bash"
["HISTSIZE"]=>  string(4) "1000"
["QTDIR"]=>  string(15) "/usr/lib/qt-3.3"
["QTINC"]=>  string(23) "/usr/lib/qt-3.3/include"
["USER"]=>  string(4) "root"
["LS_COLORS"]=>  string(1268)
"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01
;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"

["MC_TMPDIR"]=>  string(12) "/tmp/mc-root"
["PATH"]=>  string(29) "/sbin:/usr/sbin:/bin:/usr/bin"
["MAIL"]=>  string(20) "/var/spool/mail/root"
["PWD"]=>  string(17) "/etc/xxx/yyy"
["LANG"]=>  string(1) "C"
["HISTCONTROL"]=>  string(11) "ignorespace"
["HOME"]=>  string(5) "/root"
["SHLVL"]=>  string(1) "4"
["MC_SID"]=>  string(5) "25229"
["LOGNAME"]=>  string(4) "root"
["CVS_RSH"]=>  string(3) "ssh"
["QTLIB"]=>  string(19) "/usr/lib/qt-3.3/lib"
["LESSOPEN"]=>  string(24) "|/usr/bin/lesspipe.sh %s"
["G_BROKEN_FILENAMES"]=>  string(1) "1" ["_"]=>  string(15) "/usr/sbin/httpd"



On Sun, Apr 4, 2010 at 10:54 PM, Daniel P. Brown
<daniel.brown@xxxxxxxxxxxx>wrote:

Sorry for the top-post. Easter has me on the DROID instead of my PC.

I second Rixham's thought. Is it a DSO, CGI, FCGI? What pops out in
var_dump($_SERVER) and var_dump($_ENV)?

On Apr 4, 2010 3:49 PM, "Nathan Rixham"<nrixham@xxxxxxxxx>  wrote:

Satz Klauer wrote:
Hi,

I'm running a system with Fedora 12 and Apache/PHP default installatio...
just a quick sanity check; you do have the specific site/directory set
up to send and receive basic auth yeah? sounds very much to me like this
is an apache config issue and not php :)

regards!


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub....




This means that something is wrong with your script or server which is not sending the Auth headers properly. Do you get the auth box in the latest browser, and are you sure that you're using basic and not digest auth ?

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux