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]
|