You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
317 B

3 years ago
2 months ago
3 years ago
2 months ago
3 years ago
  1. <?php
  2. $target_dir = "./scinder1pdf/pdf/";
  3. $target_file = $target_dir . basename($_FILES["fichier"]["name"]);
  4. move_uploaded_file($_FILES["fichier"]["tmp_name"], $target_file);
  5. $zip = array();
  6. exec("./scinder1pdf/pdfseparate.sh ".$_FILES["fichier"]["name"], $zip);
  7. echo "<a href='".end($zip)."'>Télécharger</a>";
  8. ?>