can anyone spot what im doing wrong here?
I modified this script from another script thats working fine on my server …
just cant see what’s making this not work…
<?
	
	$fileType = "jpg";
	
	$file = "test.jpg";
	$finishedThumb = "thumb.".$fileType;
	
	list($width, $height) = getimagesize($file);
	
	$newwidth = 200;
	$newheight = 200;
	
	
	
	// create the thumb image
	$thumb = imagecreatetruecolor($newwidth, $newheight);
	
	
	
	// load source data
	if ($fileType=="gif")
		$source = imagecreatefromgif($file);
	elseif ($fileType=="jpg")
		$source = imagecreatefromjpeg($file);
	elseif ($fileType=="png")
		$source = imagecreatefrompng($file);
		
		
	imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
		
		
		
	// create the thumb
	if ($fileType=="gif")
		imagegif($thumb,$finishedThumb);
	elseif ($fileType=="jpg")
		imagejpeg($thumb,$finishedThumb);
	elseif ($fileType=="png")
		imagepng($thumb,$finishedThumb);
echo $finishedThumb;
?>