RE: [PHP] Re: Authenticate an user: Help!!!

From: Date: Tue, 06 Nov 2001 19:53:31 +0000
Subject: RE: [PHP] Re: Authenticate an user: Help!!!
Groups: php.general 
Request: Send a blank email to php-general+get-73644@lists.php.net to get a copy of this message
I cut and pasted your code and it worked fine for me. I don't have a clue as to what could be the configuration problem on your server. Sorry. Kirk > -----Original Message----- > From: Mercedes [mailto:mercedes@visualsies.com] > Sent: Wednesday, November 07, 2001 12:16 PM > To: php-general@lists.php.net > Subject: [PHP] Re: Authenticate an user: Help!!! > > > Sorry, I´ve repaired that and the new code is: > > <? > header( 'WWW-Authenticate: Basic realm="Private"' ); > header( 'HTTP/1.0 401 Unauthorized' ); > echo 'Authorization Required.'; > exit; > ?> > > and the new problem is a 500 error: > Internal Server Error > The server encountered an internal error or misconfiguration > and was unable > to complete your request. > > and the log error file says: > [Wed Nov 07 20:14:02 2001] [error] [client 127.0.0.1] > malformed header from > script. Bad header=HTTP/1.0 401 Unauthorized: c:/php4/php.exe > > > Thanks a lot. Could you please, help me?

« previous php.general (#73644) next »