0
我試圖運行exec,shell_exec在php5.4中不起作用。我沒有在php.ini中找到「Safe_mode」(也讀過這個刪除)。任何解決方案?,幫助我!如何在PHP 5.4中啓用exec?
我試圖運行exec,shell_exec在php5.4中不起作用。我沒有在php.ini中找到「Safe_mode」(也讀過這個刪除)。任何解決方案?,幫助我!如何在PHP 5.4中啓用exec?
Prove all, and finally the solution for me is(uniformPortalServer):
pclose(popen(「start/B」。$ cmd,「r」));
function execInBackground($cmd) {
if (substr(php_uname(), 0, 7) == "Windows"){
pclose(popen("start /B ". $cmd, "r"));
}
else {
exec($cmd . " > /dev/null &");
}
}