PHP exec 명령을 실행하려고합니다. 그것은 내 CMD에서 매력처럼 실행되지만 PHP를 통해 시도 할 때 아무 것도하지 않습니다. 누군가 내가 여기서 잘못하고있는 것을 볼 수 있습니까?PHP를 통한 exec 명령 도움말
감사합니다. 당신의 exec
전화의 새로운 기능
<?php
//Command line command
//"C:\Program Files (x86)\PHP\v5.3\php-cgi.exe" "C:\inetpub\wwwroot\dev_site\images\0000\thumbs.php"
//This runs perfectly fine.
echo "Command line execution started<br />";
//This is when $desination is already set to 0000
echo exec("C:\\Program Files (x86)\\PHP\\v5.3\\php-cgi.exe C:\\inetpub\\wwwroot\\dev_site\\images\\$destination\\thumbs.php");
echo "<br />Command line command successful";
//Does not run
?>
관련을, [당신이 어떻게 실행 않는 .bat 파일을 PHP에서?] (http://stackoverflow.com/q/835941) – jww