I'm building a site where I'd like to be able to upload a small zip file of images using a form and extracting using PHP, but I have no idea how to do this or where to begin looking for a solution.
I have this code:
$photo_path = "photos/$year/";
$zip_path = "sets/$year/";
$photo = $_FILES["photo"]["name"];
$gallery = $_FILES["gallery"]["name"];
move_uploaded_file($_FILES["photo"]["tmp_name"],"$photo_path" . $id . ".jpg"); //Adds Photo To $photo_path
move_uploaded_file($_FILES["gallery"]["tmp_name"],"$zip_path" . $id . ".zip"); // Adds Zip File To $zip_path
How could I best get the zip file that I upload to extract using PHP?