note 107831 added to function.imagecreate
| From: | access dot ratnajit at gmail dot com | Date: | Thu, 08 Mar 2012 06:46:03 +0000 |
| Subject: | note 107831 added to function.imagecreate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186540@lists.php.net to get a copy of this message | ||
Hello!
I'm using XAMPP 1.7.7 having PHP 5.3.8 and GD 2.0.34 where JPEG Support is enabled.
After using the following code to create an image, some errors are displaying every time I refresh
the page.
Code written:
<?php
header("Content-type: image/jpeg");
$myImg=imagecreate(30,10);
$bgcolor=imagecolorallocate($myImg,0,0,0);
$fgcolor=imagecolorallocate($myImg,14,43,71);
imagestring($myImg,1,1,1,"myText", $fgcolor);
imagejpeg($myImg);
?>
Errors displayed:
����JFIF��>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality ��C $.' ",#(7),01444'9=82<.342��C
2!!22222222222222222222222222222222222222222222222222��
"��
���}!1AQa"q2���#B��R��$3br�
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
Please help me in this regard.
Thank you!
----
Server IP: 69.147.83.197
Probable Submitter: 49.136.175.128
----
Manual Page -- http://www.php.net/manual/en/function.imagecreate.php
Edit -- https://master.php.net/note/edit/107831
Del: integrated -- https://master.php.net/note/delete/107831/integrated
Del: useless -- https://master.php.net/note/delete/107831/useless
Del: bad code -- https://master.php.net/note/delete/107831/bad+code
Del: spam -- https://master.php.net/note/delete/107831/spam
Del: non-english -- https://master.php.net/note/delete/107831/non-english
Del: in docs -- https://master.php.net/note/delete/107831/in+docs
Del: other reasons-- https://master.php.net/note/delete/107831
Reject -- https://master.php.net/note/reject/107831
Search -- https://master.php.net/manage/user-notes.php