hi

ive coded with help an php image resize code, to go in upload.php, ill show:

PHP Code: 

include"imagecfg.php";

        
//Make a 90x90px thumbnail......
        
$fulluploadlPath $thumbDir.$name;
        
        
$img imagecreatefromjpeg($fulluploadlPath);
        
$img imagecreatefrompng($fulluploadlPath);
        
$img imagecreatefromgif($fulluploadlPath);
        
        if (!
$img) { echo "<h1>Error: Couldn't open image to create thumbnail!</h1>" ; }
        
            else {
                    
$newW round(($thumbPixels $height) * $width); //thumnail width
                    
$newImg imagecreatetruecolor ($newW$thumbPixels);
                    
imagecopyresampled ($newImg$img0000$newW$thumbPixels$width$height);
                    
$thumbfilename $thumbDir .'/'$thumbName;
                    
                    
imagejpeg($newImg$thumbnName) or die("<h1>Error: Couldn't save thumnbail!</h1>");
                    
                    echo 
"<img src='$thumbName'>" ;
                } 
can any1 help me fix these errors:

Code: 
Warning:  imagecreatefromjpeg(images/thumbs/1310586947.png) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in C:\wamp\www\includes\imageupload.php on line 28

Warning:  imagecreatefrompng(images/thumbs/1310586947.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in C:\wamp\www\includes\imageupload.php on line 29

Warning:  imagecreatefromgif(images/thumbs/1310586947.png) [function.imagecreatefromgif]: failed to open stream: No such file or directory in C:\wamp\www\includes\imageupload.php on line 30


Thx
Chris2k Reviewed by Chris2k on . php resize hi ive coded with help an php image resize code, to go in upload.php, ill show: include"imagecfg.php"; //Make a 90x90px thumbnail...... $fulluploadlPath = $thumbDir.$name; Rating: 5