Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 81913 invoked by uid 500); 7 Apr 2003 18:13:34 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 81885 invoked from network); 7 Apr 2003 18:13:33 -0000 Received: from venus.commerce.ubc.ca (137.82.154.16) by daedalus.apache.org with SMTP; 7 Apr 2003 18:13:33 -0000 Received: from exchange.commerce.ubc.ca (exchange.commerce.ubc.ca [137.82.66.44]) by venus.commerce.ubc.ca (8.9.3/8.9.3) with ESMTP id LAA02038 for ; Mon, 7 Apr 2003 11:13:38 -0700 Received: from usager70-65.hec.ca ([132.211.70.65]) by exchange.commerce.ubc.ca with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id 2DLPBGHX; Mon, 7 Apr 2003 11:14:13 -0700 Date: Mon, 7 Apr 2003 14:13:27 -0400 (=?ISO-8859-1?Q?Est_=28heure_d'=E9t=E9=29?=) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <003f01c2fd2a$5b0c9440$5904a40c@andy> Message-ID: References: <003f01c2fd2a$5b0c9440$5904a40c@andy> X-X-Sender: slive@exchange.commerce.ubc.ca MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] custom error messages are not working right On Mon, 7 Apr 2003, Prince wrote: > wen trying this for a setup: > in my authorization file i have: > (header("www-authenticate: basic realm='login'"); > header("http/1.0 401 Unauthorized"); > echo "error loging in"; > exit; > //more code here but not tied to login/error problems > ?> I've never done this myself in php, but I think you are a little confused: you seem to be under the impression that this is an nph script. It is not. Apache is resonsible for generating the HTTP header, etc. You should just be sending Status: 401 Unauthorized Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org