Re: Redirecting (after output has started)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux