Lilian
12-02-2007, 10:53 AM
Im getting an error with the image thing on Kristall Panel Can anyone help?
Im getting this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/name/public_html/dir/dir/KristallPanel/imagever.php on line 5Heres the code:
<?php
session_start();
$alphanum = "ABCDEFGHIJKLMNPRSTUVWXYZabcdefghijklmnpqrstuvwxyz1 23456789";
$rand = substr(str_shuffle($alphanum), 0, 8);
$image = imagecreatefromjpeg("imgver.jpg");
$textColor = imagecolorallocate ($image, 255, 255, 255);
imagestring ($image, 5, 40, 8, $rand, $textColor);
$_SESSION['image_rand_str'] = md5($rand);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
?>+REP To anyone who can help me.
Im getting this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/name/public_html/dir/dir/KristallPanel/imagever.php on line 5Heres the code:
<?php
session_start();
$alphanum = "ABCDEFGHIJKLMNPRSTUVWXYZabcdefghijklmnpqrstuvwxyz1 23456789";
$rand = substr(str_shuffle($alphanum), 0, 8);
$image = imagecreatefromjpeg("imgver.jpg");
$textColor = imagecolorallocate ($image, 255, 255, 255);
imagestring ($image, 5, 40, 8, $rand, $textColor);
$_SESSION['image_rand_str'] = md5($rand);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
?>+REP To anyone who can help me.