fork download
  1. <?php
  2. $cmd = 'C:/xampp/htdocs/3dpartpricelib2/programs/KISSlicer_1.6.3/KISSlicer64.exe';
  3. $args = array();
  4. $args[] = "\"C:/xampp/htdocs/3dpartpricelib2/stls/cube.stl\"";
  5. $args[] = "-hidegui";
  6. $args[] = "-o \"C:/xampp/htdocs/3dpartpricelib2/gcode/cube-kisslicer.gcode\"";
  7.  
  8. $descriptorspec = array(
  9. 0 => array('pipe', 'r'),
  10. 1 => array('pipe', 'w'),
  11. 2 => array('pipe', 'w')
  12. );
  13.  
  14. $cmd = $cmd.' '.implode(' ', $args).' 2>&1';
  15. //die($cmd);
  16. proc_open($cmd, $descriptorspec, $pipes);
  17.  
  18. //$output = array();
  19. //exec($cmd, $output, $return_var);
  20.  
  21.  
  22. ?>
  23.  
Success #stdin #stdout 0.03s 25848KB
stdin
Standard input is empty
stdout
Standard output is empty