note 59144 deleted from function.header by sp

From: Date: Sun, 05 Feb 2006 13:14:48 +0000
Subject: note 59144 deleted from function.header by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-103032@lists.php.net to get a copy of this message
Note Submitter: Leonel Quinteros ---- I have a function to redirect a page allways using header or javascript when headers_sent() == true. <?php function Redirect($url) { if(headers_sent()) { echo "<script type='text/javascript'>location.href='$url';</script>"; } else { header("Location: $url"); } } ?>

« previous php.notes (#103032) next »