faqts : Computers : Programming : Languages : PHP : Common Problems : Redirects

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 17 people (24%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

what is the php statement which is similar to respone.redirect or server.transfer of asp?

Jul 9th, 2004 12:29
Philip Olson, ashok vishal s. r.,


You'd send the appropriate HTTP header and for redirects it's the 
Location header.  For example:
  header("Location: http://www.example.com/somewhere.php");
See the Redirects section on faqts for details (and gotchas) for 
redirects in PHP:
  Faqts: PHP - Redirects
  http://www.faqts.com/knowledge_base/index.phtml/fid/60