note 23510 added to function.imagejpeg

From: Date: Fri, 19 Jul 2002 21:57:45 +0000
Subject: note 23510 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-33326@lists.php.net to get a copy of this message
It took me quite a while to figure out how to output dynamic images along with html with my php scripts. I may be dim but I'm sure I'm not the only one. So here it is if you need it. Instead of sending the image directly to the browser, which ends up looking like a bunch of garbage to most users, send an IMG tag with the SRC attribute set to your PHP script that creates the image. echo '<IMG SRC="makeimg.php?args=YourMakeImgArgs">'; -- http://www.php.net/manual/en/function.imagejpeg.php http://master.php.net/manage/user-notes.php?action=edit+23510 http://master.php.net/manage/user-notes.php?action=delete+23510 http://master.php.net/manage/user-notes.php?action=reject+23510

« previous php.notes (#33326) next »