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?

1 of 3 people (33%) answered Yes
Recently 1 of 3 people (33%) answered Yes

Entry

Is there a simple PHP comand/function that relocates the page to another page server side?

Oct 8th, 2006 14:25
Matthew Wilkinson, Jon Saboe,


header('Location: page.php');
Please note that you must use this before you send any data to the
client. Unless you use output buffering (ob_start();) you must NOT
output anything before using this command.