This is the full code so far. The files are saving but they are not resizing. Can anyone help? I need to get this $myimage = imagejpeg($thumb); into $target_path directory. H. ------------------------------------------ if(isset($_POST['_upload']) && $_FILES['userfile']['size'] > 0) { $imageinfo = getimagesize($_FILES['userfile']['tmp_name']); echo $width=$imageinfo[0]; echo $height=$imageinfo[1]; $newwidth = 300; $newheight = 200; // Load $thumb = imagecreatetruecolor($newwidth, $newheight); $source = imagecreatefromjpeg($_FILES['userfile']['tmp_name']); // Resize $myimage = imagecopyresized($thumb, $source, 0, 0, 0, 0, 300, 200, $width, $height); // Output $myimage = imagejpeg($thumb); $target_path = "../property_images/$property_id/".basename( $_FILES['userfile']['name']); $img_url= $property_id."/".basename( $_FILES['userfile']['name']); if(move_uploaded_file($_FILES['userfile']['tmp_name'], $target_path)) { /* echo "The file ". basename( $_FILES['userfile']['name']). " has been uploaded";*/ } else{ echo "There was an error uploading the file, please try again!"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php