Re: Redirect command in PHP ???
| From: | Chris Hayes | Date: | Mon, 05 May 2003 11:14:15 +0000 |
| Subject: | Re: Redirect command in PHP ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146421@lists.php.net to get a copy of this message | ||
At 13:10 5-5-03, you wrote:
Hi, Is there any kind of command (or script) in PHP equivalent to HTML "redirect"??? I am need to switch execution from one script to another WITHOUT include or require. Thanks in advance for any suggestion.
Header("Location: "http://www.site.org/index.php?module=x&func=y&id=15");
break;
be sure not to cause ANY output before, or you will get a 'headers already send' error.
Earlier output includes
* echo/print
* flush
* any text, spaces or newlines outside the <?PHP ?> limits