update : 2015.11.03
php.shukuma.com검색:
|
proc_open(PHP 4 >= 4.3.0, PHP 5, PHP 7) 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 변경점
예제
Example #1 A proc_open() example
<?php 위 예제의 출력 예시: Array ( [some_option] => aeiou [PWD] => /tmp [SHLVL] => 1 [_] => /usr/local/bin/php ) command returned 0 주의
참고
|