I am using PHP 4.3.1 and i have written a little code for purpose of CAPTCHA Image.
i am running this code locally on localhost using IIS 5.0.
When i open the code page, i get an fatal error like:
Here is my code
"
Expand|Select|Wrap|Line Numbers
- header ("Content-type: image/jpeg");
- $img = imagecreate(100,30);
- $black = imagecolorallocate($img, 0, 0, 0);
- $white = imagecolorallocate($img, 255, 255, 255);
- $text = "H6U84S";
- imagestring($img, 14, 5, 5, $text, $white);
- imagejpeg($img,'',100); //Output Picture
- imagedestroy ($img);
And i am having this Fatal Error
Fatal error: Call to undefined function: imagecreate() in C:\Documents and Settings\majeedm\Desktop\Test\test.php on line 2
Can any please help me out.