note 37847 rejected from function.imagejpeg by vincent

From: Date: Sat, 29 Nov 2003 17:39:39 +0000
Subject: note 37847 rejected from function.imagejpeg by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61143@lists.php.net to get a copy of this message
Note Submitter: prudue@msn.com ---- Now I am so bored by my image PHP script does not work. The image always cannot appear in the web page when I quote it as "<img src=image.php>". But when I only run "image.php", it will appear. Here is my image.php: <? $code="2w2412"; $image = ImageCreateFromJPEG("images/code_bg.jpg"); $text_color = ImageColorAllocate($image, 80, 80, 80); Header("Content-type: image/jpeg"); ImageString ($image, 5, 12, 2, $code, $text_color); ImageJPEG($image, "", 75); ImageDestroy($image); ?> What shall I do?

« previous php.notes (#61143) next »