note 46204 added to function.imagejpeg

From: Date: Sat, 02 Oct 2004 10:17:15 +0000
Subject: note 46204 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-77733@lists.php.net to get a copy of this message
Starting a session in your image-scripts work fine. Be careful though, as arjini writes: Any whitespace will (and should) break the image. Always double-check the headers you send. To simplify your life: <?php // create the $im, and put something useful in it header('Content-Type: image/jpeg'); imagejpeg($im); imagedestroy($im); exit; ?> The exit-statement will take care of any whitespaces below it. ---- Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46204 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46204&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46204&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77733) next »