LXXXIII. Program Execution functions

介紹

Those functions provides means to executes commands on the system itself, and means secure such commands.

需求

無需外部庫文件就可以加入本擴展模塊的支援。

安裝

這些函式作為 PHP 核心的一部分,無需被安裝即可使用。

執行時配置

該擴展模塊未定義任何設置指令。

資源型別

該擴展模塊未定義任何資源型別。

預定義常數

該擴展模塊未定義任何常數。

相關參考

Those functions are also closely related to the backtick operator.

目錄
escapeshellarg -- escape a string to be used as a shell argument
escapeshellcmd -- escape shell metacharacters
exec -- Execute an external program
passthru --  Execute an external program and display raw output
proc_close --  Close a process opened by proc_open and return the exit code of that process.
proc_open --  Execute a command and open file pointers for input/output
shell_exec --  Execute command via shell and return complete output as string
system -- Execute an external program and display output