« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for descriptorspec (0.001 sec.)
proc_open — コマンドを実行し、入出力用にファイルポインタを開く | PHP 8.3 9414
proc_open (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) proc_open — コマンドを実行し、入出力用にファイルポインタを開く 説明 function proc_open ( array | string $command , array $descriptor_spec , array &$pipes , ? string $cwd = null , ? array $env_ ... になりました。 7.4.0 options パラメータに オプション create_process_group が追加されました。 例 例1 proc_open() の例 <?php $descriptorspec = array( 0 => array( "pipe" , "r" ), // stdin は、子プロセスが読み込むパイプです。 1 => array( "pipe" , "w" ), // stdout は ... ァイルで、そこに書き込みます。 ); $cwd = '/tmp' ; $env = array( 'some_option' => 'aeiou' ); $process = proc_open ( 'php' , $descriptorspec , $pipes , $cwd , $env ); if ( is_resource ( $process )) { // $pipes はこの時点で次のような形を取っています。 // 0 => 子プ ... ilename.txt にある search というテキストを検索し、結果を出力したいのですが、 実際にはかなり異なる振る舞いをします。 <?php $descriptorspec = [ STDIN , STDOUT , STDOUT ]; $cmd = '"findstr" "search" "filename.txt"' ; $proc = proc_open ( $cmd , $descriptorspec , $ ...
https://man.mtool.work/php/8.3/function.proc-open.html
PREV 1 NEXT