note 115541 deleted from function.proc-open by cmb

From: Date: Sun, 01 Dec 2019 09:11:48 +0000
Subject: note 115541 deleted from function.proc-open by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213345@lists.php.net to get a copy of this message
Note Submitter: sergioshev at gmail dot com ---- If you want make use of double pipe. As prove of concept something like this... "Double pipe example." cat in_data | cat | cat > out_data here is an example how to achieve that <?php $d2 = array ( 0 => array('pipe','r'), 1 => array('file','/var/tmp/test_gen_trans.log','w') ); $proc_2 = proc_open('cat', $d2, $p2); $d = array( 0 => array('file','/var/tmp/test.log','r'), 1 => $p2[0] ); $proc = proc_open("cat", $d, $p); proc_close($proc); proc_close($proc_2); ?>

« previous php.notes (#213345) next »