我想執行使用PHP的外殼命令。 如何執行註釋中列出的那些命令。如何通過PHP執行外殼的逗號
-2
A
回答
0
取決於您的web服務器配置。我使用phpseclib通過php執行shell命令,但根據您的需要,簡單的shell_exec()就足夠了。
0
shell_exec("script.sh");
+0
在shell_exec中能夠打開file.but但不能執行行節點樣本js.how做shell-exec('node sample'); shell exec ('cd filepath'); –
相關問題
- 1. 如何執行從PHP腳本外殼
- 2. 如何使用php執行長外殼(通過單擊int this php頁面)
- 3. PHP - 執行從MAC外殼/終端
- 4. 如何在外殼執行JavaScript
- 5. 外殼:如何做減號
- 6. 通過cron執行外部php
- 7. 執行存儲過程與由逗號
- 8. 執行外殼CakePHP中
- 9. 命令執行外殼
- 10. 逗號陣列上,除了通過PHP
- 11. 我如何通過一個逗號
- 12. 如何通過逗號sepeted成目標
- 13. 通過電源外殼
- 14. 通過python監測外殼
- 15. 魚外殼,並通過`function`
- 16. 如何通過PHP執行Vhosts?
- 17. 如何通過PHP執行SSH命令
- 18. 如何通過PHP執行「git push」?
- 19. 如何運行apt更新,並通過Ansible外殼升級
- 20. 如何通過執行命令行壓縮通過php
- 21. 如何通過執行外部命令來執行vim命令?
- 22. crontab的定製外殼執行的cron
- 23. 如何通過星號的AMI API執行撥號方案?
- 24. 報價爲字符串添加逗號之間的外殼
- 25. 如何通過終端通過TestNG組逗號分隔(group1,group2)?
- 26. 通過PHP執行SSH執行
- 27. 額外的逗號
- 28. 需要逗號分隔的殼牌
- 29. 通過PHP執行腳本
- 30. 通過PHP執行javascript
CD 「filelocation」 和節點名 –
你試過執行shell命令標準的PHP函數?結果是什麼? – axxis
我是否正確地想要在你的php代碼中執行'php'?例如'php somephp.php' – Ali