note 76711 added to function.proc-open

From: Date: Fri, 27 Jul 2007 07:48:22 +0000
Subject: note 76711 added to function.proc-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-128960@lists.php.net to get a copy of this message
missilesilo at gmail dot com had a great example. However error messages didn't work because of wrong stderr argument. I changed last value 'r' of $descriptorspec = array( 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'r') ); to 'w' so that error messages are actually written. $descriptorspec = array( 0 => array("pipe", "r"), // stdin is a pipe that the child will read from 1 => array("pipe", "w"), // stdout is a pipe that the child will write to 2 => array("pipe", "w") // stderr is a file to write to ); ---- Server IP: 62.237.7.3 Probable Submitter: 82.215.225.190 ---- Manual Page -- http://www.php.net/manual/en/function.proc-open.php Edit -- https://master.php.net/note/edit/76711 Del: integrated -- https://master.php.net/note/delete/76711/integrated Del: useless -- https://master.php.net/note/delete/76711/useless Del: bad code -- https://master.php.net/note/delete/76711/bad+code Del: spam -- https://master.php.net/note/delete/76711/spam Del: non-english -- https://master.php.net/note/delete/76711/non-english Del: in docs -- https://master.php.net/note/delete/76711/in+docs Del: other reasons-- https://master.php.net/note/delete/76711 Reject -- https://master.php.net/note/reject/76711 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128960) next »