MAMP, resize not working, works on remote server

See all posts See thread Reply

Re: MAMP, resize not working, works on remote server new!
by Nero, 11 years, 1 month ago
i forgot to add my php code, i'm using your latest version, i put the image resize inside a comment because otherwise it won't work

if (isset($_POST['submit'])){
  $img_name = md5(date("Y-m-d H:i:s").$_FILES['image']['name']);
  $upload = new upload($_FILES['image']);
  $upload->file_new_name_body 	=	$img_name;
  /*
  $upload->image_resize 			=	true;
  $upload->image_convert			=	'jpg';
  $upload->image_ratio_y			=	true;
  $upload->image_x				=	700;
  */
  $upload->process('upload/');
  echo $upload->error;
  echo $upload->log;
}
Reply