Samuel VERMEULEN 2 months ago
parent
commit
2da8693620
  1. 4
      pdfseparate.php

4
pdfseparate.php

@ -1,9 +1,9 @@
<?php
$target_dir = "/var/www/wordpress/scinder1pdf/pdf/";
$target_dir = "./scinder1pdf/pdf/";
$target_file = $target_dir . basename($_FILES["fichier"]["name"]);
move_uploaded_file($_FILES["fichier"]["tmp_name"], $target_file);
$zip = array();
exec("/var/www/wordpress/scinder1pdf/pdfseparate.sh ".$_FILES["fichier"]["name"], $zip);
exec("./scinder1pdf/pdfseparate.sh ".$_FILES["fichier"]["name"], $zip);
echo "<a href='".end($zip)."'>Télécharger</a>";
?>
Loading…
Cancel
Save