note 60991 deleted from function.imagejpeg by bjori
| From: | bjori@php.net | Date: | Wed, 03 May 2006 11:51:59 +0000 |
| Subject: | note 60991 deleted from function.imagejpeg by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-110445@lists.php.net to get a copy of this message | ||
Note Submitter: Carl Gieringer
----
If you are looking through all your files for any white space before '<?php' or after
'?>' (because your darn images are just not displaying in the browser!) you should also
consider your file encoding. I was saving all my .php files as UTF-8 because I thought it was the
fashionable thing to do, but only after I re-saved the pages pertinent to image generation as
Western ISO-1 did the image display correctly. I think perhaps my php cgi executable is not Unicode
source file friendly, and therefore it was outputting Unicode's Byte-Order Mark. I think this
BOM wouldn't interfere with text since a browser would ignore it, but as the first couple of
bytes of a jpeg, it caused Firefox, IE, and Safari to fail.