Advertisement
Guest User

Untitled

a guest
Sep 13th, 2011
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2. /* extract files and process each */
  3. $folder = "images";
  4. $uid = rand(1000, 9999);
  5. $uid .= time();
  6.  
  7. $tmp_dir = $folder . "_zip_$uid";
  8. exec("rm -rf $tmp_dir");
  9. exec("mkdir $tmp_dir");
  10. move_uploaded_file($_FILES["archive"]["tmp_name"], $tmp_dir . "/SamplePictures.zip");
  11. exec($q = "unzip -j -d $tmp_dir $tmp_dir/SamplePictures.zip");
  12. exec("ls $tmp_dir", $out);
  13. foreach ($out as $line){
  14.  
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement