note 117531 added to function.proc-open
| From: | vanyazin at gmail dot com | Date: | Thu, 25 Jun 2015 04:47:22 +0000 |
| Subject: | note 117531 added to function.proc-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202945@lists.php.net to get a copy of this message | ||
If you want to use proc_open() function with socket streams, you can open connection with help of
fsockopen() function and then just put handlers into array of io descriptors:
<?php
$fh = fsockopen($address, $port);
$descriptors = [
$fh, // stdin
$fh, // stdout
$fh, // stderr
];
$proc = proc_open($cmd, $descriptors, $pipes);
----
Server IP: 72.52.91.14
Probable Submitter: 77.37.215.25
----
Manual Page -- http://php.net/manual/en/function.proc-open.php
Edit -- https://master.php.net/note/edit/117531
Del: integrated -- https://master.php.net/note/delete/117531/integrated
Del: useless -- https://master.php.net/note/delete/117531/useless
Del: bad code -- https://master.php.net/note/delete/117531/bad+code
Del: spam -- https://master.php.net/note/delete/117531/spam
Del: non-english -- https://master.php.net/note/delete/117531/non-english
Del: in docs -- https://master.php.net/note/delete/117531/in+docs
Del: other reasons-- https://master.php.net/note/delete/117531
Reject -- https://master.php.net/note/reject/117531
Search -- https://master.php.net/manage/user-notes.php