I'm using imgAreaSelect to select image area. I have following values.
Need Help to upload original image to "../original-images/" folder & cropped images to "../uploads/" folder.
Upload cropped images with new filename "$newfilename"
Plz help
Thanks in advance.
$x1
$y1
$x2
$y2
$w
$h
$filename = $_FILES["image"]["name"];
$file_basename = substr($filename, 0, strripos($filename, '.')); // get file extention
$file_ext = substr($filename, strripos($filename, '.')); // get file name
$newfilename =time().rand(11,99). md5($file_basename) . $file_ext;