|
Posted by Wim Cossement on 09/07/06 13:24
malatestapunk wrote:
>
> I'm glad to hear you solved your problem. But just in case you need it
> anytime later, you received the error when you tried to send a header
> through PHP because there was some output before the header. You should
> always send headers first, before anything else goes out.
>
> regards,
> Vladislav
Hi Vladislav,
It was the 1st line of the PHP code, before preparing and executing the
SQL statement.
Before that there was just some common HTML, containing the <head> and
beginning of the <body>.
From my limited knowledge of HTTP I thought that the headers were
always the first data being sent by the webserver, and that this is done
automatically.
And I just found out that adding <? header("Content-type: text/html;
charset=utf-8"); ?> would do the same as specifying the header in the
Apache config or .htaccess file, if the HTTP headers from the website
would be turned of, right?
Regards,
Wimmy
[Back to original message]
|