ok the above code is use less and dont work, 4 me anyway...

ive re written it, here we go:

PHP Code: 
               include"imagecfg.php";

        
//Make a 90x90px thumbnail......
        
$fileURL = ($uploadDir '/' $name);
        
// echo $fileURL;
        
        
if ($type == "image/pjpeg" || $type == "image/jpeg") { $newThumbImg imagecreatefromjpeg($fileURL); }
        
        if (
$type == "image/x-png" || $type == "image/png") { $newThumbImg imagecreatefrompng($fileURL); }
        
        if (
$type == "image/gif") { $newThumbImg imagecreatefromgif($fileURL); }
        
        
$ratio $width $height// calculate the ratio

        
if ($ratio ) {
        
            
$newW $thumbPixels;
            
$newH $thumbPixels $ratio;
    } else {
            
            
$newH $thumbPixels;
            
$newW $thumbPixels $ratio;
    }
    
    
//function for resize image.

    
if (function_exists(imagecreatetruecolor)){

            
$newImg imagecreatetruecolor($newW$newH);
    } else {

            die(
"Error: Please make sure you have GD library ver 2+");
    }

    
//the resizing is going on here!

    
imagecopyresized($newImg$newThumbImg0000$newW$newH$width$height);

    
//finally, save the image

[B]    ImageJpeg ($newImg $thumbDir "$newThumbImg");[/B]

    
ImageDestroy ($newImg);
    
ImageDestroy ($newThumbImg); 
ive made it bold where im getting a parse error, can u help?