Re: Redirect command in PHP ???
| From: | Andrei Verovski | Date: | Mon, 05 May 2003 12:23:37 +0000 |
| Subject: | Re: Redirect command in PHP ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146423@lists.php.net to get a copy of this message | ||
Hi, Chris,
Thanks for reply. However, is it possible to do it without Header(...)? The reason I would like to use redirect script (without include, require or header()) is that I have to switch pages and frames, called via Smarty template engine and scattered across large number of directories. include/require just mess up pathnames, and header() is also not appropriate in this case.
I have seen such redirect() script (or function) in moregroupware, but there is enormous number of scripts, it is very hard to find out how they have done it.
Thanks.
On Monday, May 5, 2003, at 02:14 PM, Chris Hayes wrote:
At 13:10 5-5-03, you wrote:* Best Regards --- Andrei Verovski * * Personal Home Page * http://snow.prohosting.com/guru4mac * Mac, Linux, DTP, Development, IT WEB Site *********************************************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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php *********************************************