note 59529 deleted from function.header by sp
| From: | sp@php.net | Date: | Fri, 09 Dec 2005 14:47:54 +0000 |
| Subject: | note 59529 deleted from function.header by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-99835@lists.php.net to get a copy of this message | ||
Note Submitter: nachojt at infotorre dot com dot ar
Reason: useless
----
Another way to correct te problem if you get this message: "Warning: Cannot modify header
information - headers already sent by ...." is using the HTML redirection insted of javascript.
In that case, you don't have to worry about the browser, if it is running javascript or if it
isn't.
To replace this:
<?php header ("Location: file.php"); ?>
you can use this:
<?php echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3;
URL=\"file.php\">"; ?>
NOTE: "CONTENT" is just the time you want the meta-tag wait before redirects.