Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
<?php flush(); echo "This is a test<br><Br>"; $software_path ="C:\\SWFTools\pdf2swf.exe" ; $pdf_path ="D:\\Book\DMC\php\Test\PDF\\1.pdf" ; $argument = "-o"; $swf_output ="D:\Book\DMC\php\Test\SWF\\1.swf" ; $cmd =" $software_path $pdf_path $argument $swf_output"; echo $cmd; $WshShell = new COM("WScript.Shell") or die("Could not start WScript"); $oExec = $WshShell->Run("cmd /C $cmd ", 0, false); ?>
the code will run without the error, but of course the command is not exicuted.
//$oExec = $WshShell->Run("cmd /C $cmd ", 0, false);
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!