Reply to Re: MAMP, resize not working, works on remote server

Re: MAMP, resize not working, works on remote server new!
by Nero, 11 years, 7 months 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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important