Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. $startingFile = "C:\\Inetpub\\wwwroot\\mo\\pdf\\pdfs\\" . $file['name'];
  3. $cmd = "PDFCreator.exe /PF\"" . $startingFile . "\"" ;
  4.  
  5.  
  6. echo "<br />Running:<strong>" . $cmd . "</strong><br /><br />";
  7.  
  8. echo exec("cmd /c echo Hello World!") . "<br />";
  9. echo system("cmd /c " . $cmd); //don't <-- worx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement