You are here: Re: SOLVED: How to upload form data containing special characters correctly? « PHP Programming Language « IT news, forums, messages
Re: SOLVED: How to upload form data containing special characters correctly?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация