note 23510 deleted from function.imagejpeg by tularis
| From: | tularis@php.net | Date: | Mon, 16 Mar 2015 13:24:56 +0000 |
| Subject: | note 23510 deleted from function.imagejpeg by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-201958@lists.php.net to get a copy of this message | ||
Note Submitter: dward at outeru dot comewithnospam
----
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">';