Posted by: macro (
Date: September 28, 2006 08:40PM


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 ($src_img = imagecreatefromjpeg($archivo)) {

somebody can help me?

Re: imagecreatefromjpeg()
Posted by: CyberSpatium (
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.

Sorry, only registered users may post in this forum.