Re: Link to a Site
| From: | Marek Kilimajer | Date: | Tue, 03 Jun 2003 12:38:19 +0000 |
| Subject: | Re: Link to a Site | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149946@lists.php.net to get a copy of this message | ||
The warning says the headers were already sent. You need to put ANY header() before ANY output (echo, print, anything outside <?php ?>). If you output anything, all necesery heders are send and then is send your output. After this you cannot add any more headers.
Mishari wrote:
Hi, I used it before, but I had a problem: my code is if (---------){ echo "........"; header (.........); } but I usually got an error. Kind Regards, esheager --- Marek Kilimajer <kilimajer@webglobe.sk> wrote:Discused few threads ago: header('Refresh: 15; url=newurl.php' ); 15 is in seconds. Mishari wrote:__________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.comHi all, I need help, actually I'm building a PHP site where my userswillwait for a few seconds reading a text then it will automatically link them to another site. I'm looking for the command which auto. link toothersites. Kind Regards, esheager __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with syncto Outlook(TM).http://calendar.yahoo.com