Reply to Re: PHP sending whitespace after headers?

Your name:

Reply:


Posted by Alvaro G. Vicario on 10/17/29 11:56

*** Harold Martin escribió/wrote (24 Aug 2006 10:11:08 -0700):
> header('Content-type: text/directory');
> echo "BEGIN:VCARD\r\n";
>
> However, PHP appears to send some additional whitespace after the
> headers are sent (after the 200 OK message). I noticed this behavior
> also occurs when no custom headers are sent. The problem here is the
> some vCard readers will fail if the file begins with whitespace, so how
> can I disable this extra whitespace sending in PHP?

I can think of two possibilities:

1) There *are* whitespaces in the script, maybe before a <?php tag.
2) You are including a UTF-8 encoded file with UTF-BOM (PHP doesn't handle
BOMs properly)


--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

[Back to original 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

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