|
Posted by Alvaro G. Vicario on 09/27/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
--
Navigation:
[Reply to this message]
|