Sometimes you may want to move the user away from a directory listing or another web page. There are a few ways to do this, but the quickest and most popular are as follows.
PHP Header Redirect: Insert the following code into the top of a .php page to tell the browser to instantly redirect to the page specified. Change the URL as appropriate. To view an example click here.
‹?php
// This will instantly redirect to the page below.
header('Location: http://www.google.com/');
// For more information check out the php manual
// http://www.php.net/header
?›
‹META HTTP-EQUIV=REFRESH CONTENT="0; URL=http://www.google.com"›
| < Prev |
|---|