note 120029 added to function.imagecreatefromstring

From: Date: Wed, 12 Oct 2016 14:34:13 +0000
Subject: note 120029 added to function.imagecreatefromstring
Groups: php.notes 
Request: Send a blank email to php-notes+get-206855@lists.php.net to get a copy of this message
Sending an image to a user's browser requires that you first send the HTML page headers. You can't send headers unless those headers are the very first output that your script produces. Some program editors include 1 or more unicode "byte order marker" characters at the very top of the file. You can't see them in a normal text editor but they show up in a hex editor. If you have a problem with an image that won't display properly, it may be because these byte order marker characters are being sent before the script, which means that headers aren't being sent correctly. If this happens, check your PHP script file (and any include files) with a text editor and remove any stray characters (byte order markers and any other white space) from before the <?php line. ---- Server IP: 72.52.91.14 Probable Submitter: 185.52.109.19 ---- Manual Page -- http://php.net/manual/en/function.imagecreatefromstring.php Edit -- https://master.php.net/note/edit/120029 Del: integrated -- https://master.php.net/note/delete/120029/integrated Del: useless -- https://master.php.net/note/delete/120029/useless Del: bad code -- https://master.php.net/note/delete/120029/bad+code Del: spam -- https://master.php.net/note/delete/120029/spam Del: non-english -- https://master.php.net/note/delete/120029/non-english Del: in docs -- https://master.php.net/note/delete/120029/in+docs Del: other reasons-- https://master.php.net/note/delete/120029 Reject -- https://master.php.net/note/reject/120029 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206855) next »