I have a simple PHP file upload script:
$path = "uploads/";
$actual_image_name = time().$session_id.".".$ext;
$tmp = $_FILES['photoimg']['tmp_name'];
move_uploaded_file($tmp, $path.$actual_image_name);
How can I save the uploaded image in JPG format?
Try this: