note 43458 added to function.imagejpeg
| From: | rajputyogesh at hotmail dot com | Date: | Tue, 22 Jun 2004 07:00:01 +0000 |
| Subject: | note 43458 added to function.imagejpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71483@lists.php.net to get a copy of this message | ||
<?
$im = @imagecreate(250, 20) // line 1
or die("Cannot Initialize new GD image stream"); // line 2
$background_color = imagecolorallocate($im, 255, 255, 255); // line 3
$text_color = imagecolorallocate($im, 233, 14, 91); // line 4
imagestring($im, 3, 5, 5, "A Simple Text String", $text_color); // line 5
imagejpeg($im); // line 6
imagedestroy($im); // line 7
echo"This is test string."; // line 8
?>
This code is giving the output only the one jpeg image on the browser. The question is, how can I
get the image and the string [at line 8] together.
----
Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43458
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43458&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43458&report=yes
Search -- http://master.php.net/manage/user-notes.php