note 48829 added to ref.http
| From: | ianweir at NOSPAMshaw dot ca | Date: | Fri, 07 Jan 2005 23:08:03 +0000 |
| Subject: | note 48829 added to ref.http | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82938@lists.php.net to get a copy of this message | ||
Regarding the above notes about redirects, refreshes etc. using meta tags, and/or javascript, the
below code makes more sense, saves space, etc.
<?php
header('refresh: 5;http://www.example.com/');
?>
That code has the exact same effect as the meta tag, only it isn't a meta tag. Uses the same
format as well.
The 5 is the number of seconds to wait before redirecting/refreshing, (leave out the ; and
everything after it to simply refresh the page), and the url is where to redirect to.. Relative
urls are also supported.
----
Manual Page -- http://www.php.net/manual/en/ref.http.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48829
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48829&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48829&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48829&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48829&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48829&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48829&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48829&report=yes
Search -- http://master.php.net/manage/user-notes.php