Results of 1 - 2 of about 2 for descspec (0.001 sec.)
- CTRLイベント を別プロセスに送信する 11228
- « sapi_windows_cp_set sapi_windows_set_ctrl_handler » PHP Manual その他の関数 CTRLイベント を別プロセスに送信する 検索 sapi_windows_generate_ctrl_event (PHP 7 >= 7.4.0, PHP 8) sapi_windows_generate_ctrl_event — CTRLイベント を別プロセスに送
... // 1秒ごとに echo する子プロセスを生成 $cmd = [ 'php' , '-r' , 'while (true) { echo "I\'m still alive\n"; sleep(1); }' ]; $descspec = array([ 'pipe' , 'r' ], [ 'pipe' , 'w' ], [ 'pipe' , 'w' ]); $options = [ 'create_process_group' => true ]; $proc = proc ... _open ( $cmd , $descspec , $pipes , null , null , $options ); while ( true ) { echo fgets ( $pipes [ 1 ]); } ?> 参考 proc_open() - コマンドを実行し ... り削除したりする 関連キーワード: イベント 送信 sapi windows ctrl event generate handler pipe proc グループ still alive while descspec options pipes 成功 基本的 使い方 方法 sleep create process group ...
-
https://man.mtool.work/php/8.3/function.sapi-windows-generate-ctrl-event.html
- CTRLイベント を別プロセスに送信する 7485
- « sapi_windows_cp_set sapi_windows_set_ctrl_handler » PHP Manual その他の関数 CTRLイベント を別プロセスに送信する 検索 sapi_windows_generate_ctrl_event (PHP 7 >= 7.4.0, PHP 8) sapi_windows_generate_ctrl_event — CTRLイベント を別プロセスに送
... // 1秒ごとに echo する子プロセスを生成 $cmd = [ 'php' , '-r' , 'while (true) { echo "I\'m still alive\n"; sleep(1); }' ]; $descspec = array([ 'pipe' , 'r' ], [ 'pipe' , 'w' ], [ 'pipe' , 'w' ]); $options = [ 'create_process_group' => true ]; $proc = proc ... _open ( $cmd , $descspec , $pipes , null , null , $options ); while ( true ) { echo fgets ( $pipes [ 1 ]); } ?> 参考 proc_open() - コマンドを実行し ...
-
https://man.mtool.work/php/8.3/function.sapi-windows-generate-ctrl-event.html
PREV
1
NEXT