Re: Re: how to redirect ?
| From: | Chris Shiflett | Date: | Mon, 13 Sep 2004 06:41:12 +0000 |
| Subject: | Re: Re: how to redirect ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196482@lists.php.net to get a copy of this message | ||
--- Paul Waring <pwaring@gmail.com> wrote:
> > I think you used header() after put out some data or php installed on
> > server as CGI. Because send header possible only if php installed as
> > apache module.
>
> Not so - I've used header('Location:
> http://www.xyz.com/'); with PHP
> as a CGI binary under both Apache 1 and Apahce 2 without problems.
Yeah, I think he might have been thinking of this:
"Note: In PHP 3, this only works when PHP is compiled as an Apache
module. You can achieve the same effect using the Status header."
Aside from only being an issue a long time ago, it's also talking about
the ability to change the response status code, not just a regular HTTP
header.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming December 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/