Reply to Re: how does one send a "302 redirect" http header?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация