imagecreatefromjpeg()
Posted by: macro (---.prod-infinitum.com.mx)
Date: September 28, 2006 08:40PM

hi.

I install WAMP5 and everything works fine, but, when I start to programming in PHP, using images .JPG, but when I used imagecreatefromjpeg() cause a error


Fatal error: Call to undefined function imagecreatefromjpeg() in F:\server\beta4\admin\subir_foto.php on line 10

this is part of the code:

if($extension[$num]=="jpg" || $extension[$num]=="JPG"winking smiley{
if(copy($_FILES['archivo']['tmp_name'],$archivo_name)){
if ($src_img = imagecreatefromjpeg($archivo)) {
exit;
}

somebody can help me?

Options: ReplyQuote
Re: imagecreatefromjpeg()
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 28, 2006 10:32PM

if you get an error saying undefinded function, then you have not enabled gd2 extension. enable it and everything should work.

Options: ReplyQuote


Sorry, only registered users may post in this forum.