Hello there!
I was looking for a php "program" that creates charts. On this site i've found some with might be usefull. But when i try this for example:
<?php
/ chart.php /
$width = 480;
$height = 250;
$image = imagecreate($width, $height);
// colors
$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$navy = imagecolorallocate($image, 0x00, 0x00, 0x80);
$black = imagecolorallocate($image, 0x00, 0x00, 0x00);
$gray = imagecolorallocate($image, 0xC0, 0xC0, 0xC0);
// draw something here
// flush image
header("Content-type: image/gif"); // or "Content-type: image/png"
imagegif($image); // or imagepng($image)
imagedestroy($image);
?>
i get this error:
Fatal error: Call to undefined function: imagecreate() in c:\program files\easyphp1-7\www\chart.php on line 7
Does anyone know what it could be? i'm useing php veraion 4.3.3