Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="file" name="gallery[]" multiple />
- $id = time();
- $year = date("Y");
- $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"); // This Adds Photo To $photo_path
- move_uploaded_file($_FILES["gallery"]["tmp_name"],"$zip_path"); // This Doesn't Add 5 Files To $zip_path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement