<?php
if (($img = ImageCreateFromGif("images/logo.gif")) == "")
{
echo "Error - Could not open image. Arghh!";
exit;
}
$red = ImageColorAllocate($img, 255, 0, 0);
ImageString($img, 3, 0, 0, $text, $red);
header("Content-type: image/gif");
ImageGif($img);
?>
This code works for jpeg images, but it does not for gif images. The error I receive is:Call to undefined function: imagegif()
From what I can see everything looks correct...any help is appreciated.
http://ca2.php.net/manual/en/function.imagecreatefromgif.php
See if that helps any.