aren't imagejpwg() and imagegif() valid PHP functions?
// $BACKUP_FILE is the path to a specified image
if (ereg(".jpg", $BACKUP_FILE) || ereg(".jpeg", $BACKUP_FILE))
{
$SRC_IMAGE = imagecreatefromjpeg($BACKUP_FILE);
}
else
{
$SRC_IMAGE = imagecreatefromgif($BACKUP_FILE);
}
getting the following error when using a gif:
Fatal error: Call to undefined function: imagegif()
getting the following error when using a jpg:
Fatal error: Call to undefined function: imagejpeg()
what's going on here? this makes no sense to me...
btw - PHP was compiled with the GD library
Thank you in advance to anyone who might be able to shed some light on this...