CXXV. Program Execution Functions

��

Those functions provide means to execute commands on the system itself, and means to secure such commands.

�ݨD

�إ߳o�ө��ݭn���~�{�w�C

�w��

�o�Ǩ�ƬOPHP�֤ߪ�@��A�ݭn�w�˴N�i�ϥΡC

���ɴ�պA

php.ini�S�w�q��պA��O�C

�귽��

�o�ө��S�w�q���귽�C

�w��w�q�`��

�o�ө��S�w�q���`�ơC

�Ѧ�

These functions are also closely related to the backtick operator. Also, while in �w��Ҧ� you must consider the safe_mode_exec_dir directive.

內容目錄
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_get_status -- Get information about a process opened by proc_open()
proc_nice -- Change the priority of the current process
proc_open --  Execute a command and open file pointers for input/output
proc_terminate -- Kills a process opened by proc_open
shell_exec -- Execute command via shell and return the complete output as a string
system -- Execute an external program and display the output