note 31276 added to function.proc-open
| From: | daniela at itconnect dot net dot au | Date: | Wed, 16 Apr 2003 07:01:10 +0000 |
| Subject: | note 31276 added to function.proc-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46670@lists.php.net to get a copy of this message | ||
Just a small note in case it isn't obvious, its possible to treat the filename as in fopen,
thus you can pass through the standard input from php like
$descs = array (
0 => array ("file", "php://stdin", "r"),
1 => array ("pipe", "w"),
2 => array ("pipe", "w")
);
$proc = proc_open ("myprogram", $descs, $fp);
--
http://www.php.net/manual/en/function.proc-open.php
http://master.php.net/manage/user-notes.php?action=edit+31276
http://master.php.net/manage/user-notes.php?action=delete+31276
http://master.php.net/manage/user-notes.php?action=reject+31276