By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,615 Members | 1,634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,615 IT Pros & Developers. It's quick & easy.

repost : http authentication problem

P: n/a
if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) {

header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Authorization Required.';

} else {

echo "You entered $PHP_AUTH_USER for a username.<BR>";
echo "You entered $PHP_AUTH_PW for a password.<BR>";


why does the above keep on asking me for username and password

my global_variable setting is ON, i am using php 4.3.1 with apache 2
server on xp pro.

please help
Jul 16 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
jo**** (jo**** wrote in message news:<e9************************** com>...
if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) {

Using lik $PHP_AUTH_USER is old style. Instead use $_SERVER['PHP_AUTH_USER']

Don't forget to visit

Email: rrjanbiah-at-Y!com
Jul 16 '05 #2

P: n/a
<jo****> wrote in message
news:e9************************** om...
i try to change the apache server to run php as module, i follow to
step in the install.txt file but the apache server cannot be started.
can anyone tell me what is the correct step to run php 4.3.1 as apache
2 module?
thanks in advance.
Jul 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.