看板
[ PHP ]
討論串[請益] php能執行bat檔嗎
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
如果要server自動關機. shell_exec('shutdown -r -f -t 20');. 要執行bat就打路徑. shell_exec('C:\\bat.bat');. 以上都是用系統身份執行 server的user不會看到一個cmd的黑框框(是優點也是缺點). 要用user執行的話就
(還有200個字)
內容預覽:
沒有實作過,查了一下手冊. http://php.net/manual/en/function.system.php. // Outputs all the result of shellcommand "ls", and returns. // the last output line into
(還有356個字)
首頁
上一頁
1
下一頁
尾頁