|
PHP5中文手册
proc_open(PHP 4 >= 4.3.0, PHP 5) proc_open — Execute a command and open file pointers for input/output 说明
resource proc_open
( string $cmd
, array $descriptorspec
, array &$pipes
[, string $cwd
[, array $env
[, array $other_options
]]] )
proc_open() is similar to popen() but provides a much greater degree of control over the program execution. 参数
返回值Returns a resource representing the process, which should be freed using proc_close() when you are finished with it. On failure returns FALSE. 更新日志
范例
Example#1 A proc_open() example
<?php 上例的输出类似于:
注释
|