note 103485 deleted from function.header by thiago
| From: | thiago@php.net | Date: | Fri, 15 Apr 2011 15:08:09 +0000 |
| Subject: | note 103485 deleted from function.header by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178880@lists.php.net to get a copy of this message | ||
Note Submitter: Awilum
----
my redirect function
function redirect($url){
if (headers_sent()) {
echo
"<script>document.location.href='".$url."';</script>\n";
} else {
header("Location: $url");
}
exit(0);
}