ID:               16807
 Comment by:       jteik at yahoo dot com
 Reported By:      martin_jones at bigfoot dot com
 Status:           Closed
 Bug Type:         Session related
 Operating System: Windows 2000 SP2
 PHP Version:      4.2.0
 New Comment:

the problem is that your php file've saved as "UTF-8" type. you can
check this by viewing your file with some HEX file edit tool. and as
you'll see, before the first char of your php code file (maybe "<" of
"<?php") is another char - the filetype-char (2 bytes) of "UTF-8"
filetype. OMG! it'll be the HTML text printed before your code and
kicks the page's headers out.

to fix it, u need to copy all your php code and paste it into Notepad,
then, u save the file as "ANSI" filetype.

u'll fix the problem. but another have caused, it's u can't use other
languages (or fonts) base on "UTF-8" like Vietnamese, right? hehe, but
i know u can fix it easy.


Previous Comments:
------------------------------------------------------------------------

[2002-08-27 06:38:29] vvhotk at mail dot bg

It's not only if there's a empty line before <?php
I've got a line importing a .css file and when I moveed it - the
problem went away :-)

------------------------------------------------------------------------

[2002-05-30 06:50:03] [EMAIL PROTECTED]

Original reporter said it's fixed in 4.2.1, closing.

------------------------------------------------------------------------

[2002-05-28 19:36:08] toth_andor at hotmail dot com

funnily enough
when i turned register globals OFF
everything was allright

and i could reach all session vars
through the HTTP_SESSION_VARS array

but i can't access register globals here at this web server
since i only have phpmyadmin

what should be done when register globals is on

------------------------------------------------------------------------

[2002-05-15 08:30:07] martin_jones at bigfoot dot com

There are no blank lines in the script. The first line is <?php

Anyway - with the release of 4.2.1, this problem no longer occurs on my
system. The problem appears to be fixed and this bug can be closed.

------------------------------------------------------------------------

[2002-05-15 05:10:47] keithauyeung at proactive dot com dot hk

I think the following should help.
before the statement "<?php", is there any blank line above it?If yes,
delete the blank line and I think the problem will be solved. Hope this
help!!

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16807

-- 
Edit this bug report at http://bugs.php.net/?id=16807&edit=1

Reply via email to