-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');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
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
-Original Message-
From: Christopher Ditty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:59 AM
To: Matt Schroebel; [EMAIL PROTECTED]
Subject: RE: [PHP] How to Return 403 Forbidden headers
Thanks, but it returns a blank page.
Works for me in I.E 6.
?php
header
Schroebel; [EMAIL PROTECTED]
Subject: RE: [PHP] How to Return 403 Forbidden headers
Thanks, but it returns a blank page.
Works for me in I.E 6.
?php
header('HTTP/1.0 403 Forbidden');
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What browser are you using...
IE has its own 404 pages that it displays when it gets those types of
headers.
--
Ray
On Thu, 2003-03-27 at 08:58, Christopher Ditty wrote:
Thanks, but it returns a blank page.
Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM
-Original Message-
-Original Message-
From: Christopher Ditty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 11:15 AM
To: Matt Schroebel
Subject: RE: [PHP] How to Return 403 Forbidden headers
Try it in Netscape 7 if you have it.
6.5 showed blank, and if you add html it shows up
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 [EMAIL PROTECTED] wrote:
I have a customer that wants to return a 403 Forbidden header/page when
certain conditions are
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.
8 matches
Mail list logo