Re: Header - Redirect Command Not Working
| From: | Stuart | Date: | Tue, 10 Mar 2009 19:17:15 +0000 |
| Subject: | Re: Header - Redirect Command Not Working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289788@lists.php.net to get a copy of this message | ||
2009/3/10 revDAVE <Cool@hosting4days.com>
> Newbie question...
>
> At the end of a php block I'm trying to use a redirect to go to another
> page.
>
> header('Location: show.php');
>
> It works on my test server w php 5.2.6 but not at the main server w v 5.12
>
> Is there a way to get it to go to the other page (even with a different
> command/function) - or am I doing something wrong?
Is display_errors on and error_reporting set to at least E_ALL? My guess
would be your test server has output buffering on but your main server does
not. Without errors there's no way to be sure.
-Stuart
--
http://stut.net/