Reply to Re: PHP sending whitespace after headers?

Your name:

Reply:


Posted by Harold Martin on 10/13/19 11:56

Alvaro G. Vicario wrote:
> *** 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.
I double-checked, and this is definitely isn't the case.

> 2) You are including a UTF-8 encoded file with UTF-BOM (PHP doesn't handle
> BOMs properly)
I'm pretty certain this is not the case, but how would I check?

Thanks-
Harold

[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

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