You are here: Re: include generates unexpected control character « PHP Programming Language « IT news, forums, messages
Re: include generates unexpected control character

Posted by Rik Wasmus on 12/06/07 06:50

On Thu, 06 Dec 2007 07:35:01 +0100, R.A.M. <r_ahimsa_m@poczta.onet.pl> =

wrote:

> Hello,
> I have little experience in PHP so I would like to ask a question. I u=
se
> PHP5 in Windows XP Professional, Apache 2.0.59.
> I have created a website with index.php file. This file contains:
> <ul>
> <?php include('Menu/Association.inc'); ?>
> </ul>
> The file Menu/Association.inc starts with:
> <li><a href=3D"Association.php">Strona Stowarzyszenia</a></li>
> (I mean before <li> there are no characters, "<" is first byte of the =
=

> file).
> Unexpectedly in a browser I noticed additional space. When I view sour=
ce =

> I
> see in Notepad strange character between <ul> and <li> - Notepad shows=
=

> it as
> square box so I guess that it is a control character, ASCII < "!".
> I tried to use readfile() instead of include() but with the same resul=
t.
> Both files, index.php and Menu/Association.inc, are encoded using UTF-=
8 =

> (I
> have veryfied).
> Could you help me please?

UTF-8 BOM that shouldn't be there? (EF BB BF)
-- =

Rik Wasmus

 

Navigation:

[Reply to this 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

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