Re: PHP Includes (was BOM and UTF-8)

On Wed, 13 Dec 2006 18:32:57 +1100
Lachlan Hunt wrote:

[snip]

> 
> > 
> > I do not understand what the issue could be here. PHP should leave
> > no artifacts or traces that should be visible to any browser. Could
> > someone clarify please.
> 
> I believe the problem is that when you include a file using PHP, the 
> file is included exactly as-is and if the included file begins with a 
> BOM, that character will be included in the output wherever that file 
> was included.
> 

[snip]

Thanks Lachlan, explains it nicely. I use includes and UTF-8
extensively (working from Linux). I can suddenly see where my
unnexpected vertical gaps are coming from. Changing encoding will fix it
by the looks.

-- 
Michael
 Those that can, do; those that can't, teach.

Received on Thursday, 14 December 2006 07:56:03 UTC