Re: HEADER + target?
| From: | Jasper Bryant-Greene | Date: | Mon, 19 Sep 2005 08:31:08 +0000 |
| Subject: | Re: HEADER + target? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222635@lists.php.net to get a copy of this message | ||
Gustav Wiberg wrote:
I think this question has been on the list before, but I can't find it. I want to do like this: <script language="Javascript"> parent.mainFrame.location = 'fire.php'; </script> ...but in PHP with the HEADER() - function...Not that hard to find... http://php.net/header header('Location: http://www.example.com/fire.php'); You should put the full URI, including http:// and your domain. Not doing so violates the HTTP spec. If you want to signal that the resource has permanently moved, put this before the above call: header('HTTP/1.1 301 Moved Permanently'); -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/