note 34057 added to function.imagecreatefromjpeg
| From: | rublind at adelphia dot net | Date: | Tue, 15 Jul 2003 04:34:09 +0000 |
| Subject: | note 34057 added to function.imagecreatefromjpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52118@lists.php.net to get a copy of this message | ||
I am using Windows XP, I have read all of this information posted by people but when I run a script
like:
<?php
// set up image
$height = 200;
$width = 200;
$im = ImageCreate($width, $height);
$white = ImageColorAllocate ($im, 255, 255, 255);
$black = ImageColorAllocate ($im, 0, 0, 0);
// draw on image
ImageFill($im, 0, 0, $black);
ImageLine($im, 0, 0, $width, $height, $white);
ImageString($im, 4, 50, 150, 'Sales', $white);
// output image
Header ('Content-type: image/png');
ImagePng ($im);
// clean up
ImageDestroy($im);
?>
I get an error like this:
Fatal error: Call to undefined function: imagecreate() in c:\program
files\apache\apache\htdocs\ex\19\simplegraph.php on line 9
Can anyone please help me? I don't know whats wrong!
Please E-mail me if you can help, Thanks.
--Julian
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34057
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34057&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34057&report=yes