Strange chars at page begin

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am getting mad. I use PHP5 (Xampp) on Win XP, get strange errors at
page begin, before the actual output. Google found sth like BOM chars.
But my strange chars are others than mentioned (e.g a melody note from
music transcipt), and I found, by commenting out, that the chars
appear when I do a "new" command

$var = new MyClass;

In the constructor I do *nothing*. After the new (which does nothing),
I exit the script, char remains. Note that I did no echo or other
printing at all. No output buffering, nothing.

Other chars (one looks like T) may be produced at other points in
script. I think it is some general problem.

Before eventually posting more details (which?), I want to ask if you
generally know this problem/ and solutions.

* What is going on here?
* How can I get rid of it??

Thx so much for any hint!!


Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]

If you wish to email me, please use newsreply at wuwei minus webservices dot de

Re: Strange chars at page begin

Daniel Breitner wrote:
Quoted text here. Click to load it

The BOM characters are before the <?php tag, so they are handled as text
and output.

Get rid of the BOM characters - either by changing your editor settings
or changing editors.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: Strange chars at page begin

Hash: SHA1

Daniel Breitner wrote:
Quoted text here. Click to load it


in addition what Jerry Stuckle, said, keep in mind to safe your files in utf-8
Also make sure the editor you use at the windows platform supports this.
If you write code on a latest GNU/Linux system and then edit those files in
windows, it can happen that the windows editor will break thise files.


j. ke▀ler
Version: GnuPG v2.0.11 (GNU/Linux)


Site Timeline