Re: How to Return 403 Forbidden headers

From: Date: Thu, 27 Mar 2003 17:00:12 +0000
Subject: Re: How to Return 403 Forbidden headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141258@lists.php.net to get a copy of this message
Almost. It's not the Location Header you want to play with. header("HTTP/1.0 403 Forbidden"); will do the job. Serge. On Thu, 27 Mar 2003 09:41:57 -0600 "Christopher Ditty" <cditty@mlgw.org> wrote: > I have a customer that wants to return a 403 Forbidden header/page when > certain conditions are met. I looked through the online manual and all > the examples listed would not work. > > This is what I am using. > > header("Location: HTTP/1.0 403"); > > PHP tried to send the user to a "HTTP/1.0 403" webpage. > > Any ideas? > > CDitty > > ------------------------------------------------------------------------------ > 03/27/2003, 09:42:13 AM > This e-mail and any attachments represent the views and opinions of only the sender and are not > necessarily those of Memphis Light, Gas & Water Division, and no such inference should be made. > > ============================================================================== > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#141258) next »