Re: Redirecting (after output has started)

From: Date: Wed, 25 Apr 2007 14:56:56 +0000
Subject: Re: Redirecting (after output has started)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-253724@lists.php.net to get a copy of this message
At 6:25 AM -0700 4/25/07, Don Don wrote:
Hi all, whats the best way to perform a redirect after out put has started ? using header:location will not work unless theres been no output. I usuall use the method below, however am concerned for browsers that do not support javascript. $location = 'index.php'; echo "<script language='javascript'>\n"; echo "document.location.href = '" . $location . "';\n"; echo "</script>\n";
Check out ob_start <http://us.php.net/ob_start> Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#253724) next »