note 34057 rejected from function.imagecreatefromjpeg by betz

From: Date: Tue, 15 Jul 2003 06:06:21 +0000
Subject: note 34057 rejected from function.imagecreatefromjpeg by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52120@lists.php.net to get a copy of this message
Note Submitter: rublind@adelphia.net ---- 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

« previous php.notes (#52120) next »