hi there
I have download PHP Version 4.3.2 and installed under win 98, and i want to learn how make grafic from php.
I have modify my php.ini and i have remove ";" before line, the line which looks line:
extension=php_gd2.dll
and i try with a sample script like this :
<?php
header ("Content-type: image/png");
$img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color);
ImagePng ($img_handle);
?>
when i run this script, the error has found, the message like this :
<br />
<b>Fatal error</b>: Call to undefined function: imagecreate() in <b>C:\apache\htdocs\guest\1gd.php</b> on line <b>3</b><br />
My Questions is :
1. What's going on with my php ? or the script is error...???
2. I have search for some informations that build grafic in php need GD library http://www.boutell.com/gd/ Version 2.0.15 (Stable) in Zip extention, i have try it, but it seem run under linux. how to configure GD under windows ?
3. How to check that GD works...??
Thanks