note 84559 added to function.http-redirect
| From: | Anonymous at osu1 dot php dot net | Date: | Fri, 18 Jul 2008 16:59:47 +0000 |
| Subject: | note 84559 added to function.http-redirect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141667@lists.php.net to get a copy of this message | ||
Usually you want to put an exit() after the redirrect, not to continue run code on the leaving page.
header("Location: http://www.newurl.net");
exit()
----
Server IP: 69.147.83.197
Probable Submitter: 89.122.233.94
----
Manual Page -- http://www.php.net/manual/en/function.http-redirect.php
Edit -- https://master.php.net/note/edit/84559
Del: integrated -- https://master.php.net/note/delete/84559/integrated
Del: useless -- https://master.php.net/note/delete/84559/useless
Del: bad code -- https://master.php.net/note/delete/84559/bad+code
Del: spam -- https://master.php.net/note/delete/84559/spam
Del: non-english -- https://master.php.net/note/delete/84559/non-english
Del: in docs -- https://master.php.net/note/delete/84559/in+docs
Del: other reasons-- https://master.php.net/note/delete/84559
Reject -- https://master.php.net/note/reject/84559
Search -- https://master.php.net/manage/user-notes.php