Is the book wrong or me?
<html>
<head>
<title>
</title>
</head>
<body>
<?php
$image = ImageCreate(200,150);
$gray = ImageColorAllocate($image,204,204,204);
$blue = ImageColorAllocate($image,0,0,255);
ImageLine($image, 10,10,150,30, $blue);
ImageJPEG($image);
ImageDestroy($image);
?>
</body>
</html>
gives me an error msg of
"Fatal error: Call to undefined function: imagecreate() in c:\apache\htdocs\tyb\imagetesting\imagecreate.php on line 9"
Will appear after each of your posts.
|