我正在建立一个网站,我希望能够使用表单上传一个小的zip文件图像并使用PHP提取,但我不知道如何做到这一点或从哪里开始寻找解决方案
我有这段代码:
$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
我怎样才能最好地获取我上传的用于使用PHP提取的zip文件?