On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp <ernie.k...@sympatico.ca> wrote:
>
> <html>
>
> <head>
>
> <title>Contact Us</title>
>
> </head>
>
> <body>
>
> <?php header("Location: advertise2.php"); ?>
>
> </body>
>
> </html>
>
> The above is just snippet of the code but even this simple example throws the 
> Header Warning / Error.
>
>
>
> Warning: Cannot modify header information - headers already sent by (output 
> started at /home/content/g/t/a /html/yourestate/advertise.php:6) 
> in/home/content/g/t/a /html/yourestate/advertise.php on line 6
>
>
>
> The anwser may be simple but I have looked a blanks or spaces around the 
> <?php ?> with no success.
>
> Ready need your help.
>
>
>
> Thanks,
>
> Ernie Kemp
>
> Phone: 416 577 5565
>
> Email:   ek...@digitalbiz4u.com

It's all that HTML above and before <?php header("Location: advertise2.php"); ?>

You can't send ANY content to the client before sending headers.

Andrew

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

Reply via email to