Posted by John Dunlop on 04/15/06 10:56
lawrence k:
> Not especially a PHP question, but how does one indicate a 302
> redirect? Or does Apache do that automatically if I use PHP to send a
> location header?
header('Location: ... ') causes Apache to send a 302 unless you have
already sent another 3xx response (e.g., header('HTTP/1.1 301 ... ')).
It's documented at
http://www.php.net/manual/en/function.header.php
--
Jock
[Back to original message]
|