This this point the only thing you have done is overridden the status code.
You still have to send something to the browser. HTTP/1.0 403 Forbidden is not a page or a location. It's a result code. You could then do something as simple as: print "You are forbidden to view this page"; Serge. On Thu, 27 Mar 2003 09:58:49 -0600 "Christopher Ditty" <[EMAIL PROTECTED]> wrote: > Thanks, but it returns a blank page. > > >>> "Matt Schroebel" <[EMAIL PROTECTED]> 03/27/03 09:52AM >>> > > > -----Original Message----- > > From: Christopher Ditty [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 27, 2003 10:42 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] How to Return 403 Forbidden headers > > header('HTTP/1.0 403 Forbidden'); > > > ------------------------------------------------------------------------------ > 03/27/2003, 09:59:06 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php