Re[2]: [PHP] header("Location: page.php") not redirecting

From: Date: Tue, 02 Dec 2003 01:07:15 +0000
Subject: Re[2]: [PHP] header("Location: page.php") not redirecting
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-171529@lists.php.net to get a copy of this message
Hello rogue, Monday, December 1, 2003, 10:39:02 PM, you wrote: r> echo looks fine (no error in the URL). I am stumped. Is there anything r> besides output to the screen before header() that breaks it? Other than browser incompatibility, not usually. You can use the following to determine if a header has been sent without you perhaps realising it (an extra space before a PHP tag perhaps) <? if (!headers_sent()) { header ('Location: http://www.google.com/'); exit; } ?> Ideally you should exit after the header is finished. -- Best regards, Richard mailto:rich@launchcode.co.uk

« previous php.general (#171529) next »