Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* extract files and process each */
- $folder = "images";
- $uid = rand(1000, 9999);
- $uid .= time();
- $tmp_dir = $folder . "_zip_$uid";
- exec("rm -rf $tmp_dir");
- exec("mkdir $tmp_dir");
- move_uploaded_file($_FILES["archive"]["tmp_name"], $tmp_dir . "/SamplePictures.zip");
- exec($q = "unzip -j -d $tmp_dir $tmp_dir/SamplePictures.zip");
- exec("ls $tmp_dir", $out);
- foreach ($out as $line){
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement