I want to start getting into PHP image manipulation. I'm running PHP 4.0.4 w/ Apache under Windows, and I tried this script and got an error saying I had an undefined function:
<?php
//Send the header, so browser expects a gif
Header("Content-Type: image/gif");
//Create a new image- 100x100 pixels
$im = ImageCreate(100, 100);
//allocate colors to the image
$black = ImageColorAllocate($im, 0, 0, 0); //background color
$white = ImageColorAllocate($im, 255, 255, 255);
//draw line from uppper left to bottom right hand corner
ImageLine($im, 0, 0, 99, 99, $white);
//Send Image to browser
ImageGif($im);
//Destroy image
ImageDestroy($im);
?>
I guess I don't have the GD Library etc. installed- how do I do this w/ windows- and where do I get the files I need?
thanks for your time.