RE: [PHP] using header()

From: Date: Thu, 10 Apr 2003 18:17:51 +0000
Subject: RE: [PHP] using header()
Groups: php.general 
Request: Send a blank email to php-general+get-143383@lists.php.net to get a copy of this message
> -----Original Message----- > From: Pince [mailto:friendly@kaltelnet.net] > Sent: Thursday, April 10, 2003 1:53 PM > To: PHP mailing list > Subject: [PHP] using header() > does anybody know how to force apache to give a 401 > unauthorized error when > using www-authenticate when using header()? > > been trying to figure out how to send headers with header() > and for some > reason it doesnt seem to be working very well.... maybe im writing the > headers all wrong or something.. i have something like: > header("http/1.0 401 unauthorized"); You're going to get prompted to sign in a couple times first. And you need to send the unauthorized text in the case when it will show (each time), as the header is only a status, and not what the client will see.

« previous php.general (#143383) next »