|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-15 03:10 UTC] rasmus@php.net
[2002-11-15 03:52 UTC] gerwout at notenbomer dot nl
[2002-11-15 09:10 UTC] sniper@php.net
[2002-11-22 02:40 UTC] angry at notbogus dot net
[2002-12-11 10:39 UTC] croatia at firstlinux dot net
[2002-12-11 10:53 UTC] philip@php.net
[2002-12-11 10:58 UTC] derick@php.net
[2002-12-18 13:29 UTC] phildriscoll@php.net
[2002-12-18 15:21 UTC] sas@php.net
[2002-12-21 15:16 UTC] philip@php.net
[2003-01-13 11:33 UTC] mklerx at eid dot nl
[2003-01-13 12:54 UTC] philip@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
I've upgraded PHP 4.2.3 to the beta 4.3.0-pre2 and I've set register globals on in php.ini. My Apache version is 1.3.24. PHP configure: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --enable-ftp --with-openssl The script is using this .htaccess-file AuthType Basic AuthName 'Urenregistratie' AuthUserFile /htpasswd/urenreg require valid-user I am sure that Apache is setting the PHP_AUTH_USER because the following script gives the correct output: // begin dirty hack $headers = apache_request_headers(); foreach ($headers as $header => $value) { if ($header == "Authorization") { $value = str_replace(" ", "", $value); $value = str_replace("Basic", "", $value); $userArray = explode(":", base64_decode($value)); $PHP_AUTH_USER = $userArray[0]; } } echo $PHP_AUTH_USER; // end dirty hack If I echo $PHP_AUTH_USER or $_SERVER["PHP_AUTH_USER"] above this script I am getting a empty result. Note: the script was functioning 100% properly with php 4.2.3