function return_exit() {
    if (EXIT_AFTER_REDIRECT == 1) {
     return exit();
    }
  }
////
// Redirect to another page or site
  function redirect($url) {
    header('Location: ' . $url);
    return_exit();
  }
ob_start();
echo "<script></script>";
ob_end_flush();
ob_end_clean();
redirect($PHP_SELF);

here is a test i'm trying to be able to send script into the header and then
be able to redirect ones the script output has finished,  it states in the
manual that ob_end_clean : "This function discards the contents of the
output buffer and turns off output buffering. " so can it remove the
buffered output somehow onces it has been flushed before i redirect ? its an
issue i'd like to solve sure there is document.location but i'd prefer to
stick with header for redirecting let me know



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

Reply via email to