Commit | Line | Data |
---|---|---|
1 | <?php\r | |
2 | \r | |
3 | $desc = array(\r | |
4 | 0 => array("pipe", "r"), // stdin is a pipe that the child will read from\r | |
5 | 1 => array("pipe", "w"), // stdout is a pipe that the child will write to\r | |
6 | 2 => array("pipe", "r") // stderr is a file to write to\r | |
7 | );\r | |
8 | \r | |
9 | $proc = proc_open("proctest.exe", $desc, $pipes);\r | |
10 | sleep(10);\r | |
11 | proc_terminate($proc);\r | |
12 | proc_close($proc);\r | |
13 | proc_terminate($proc);\r | |
14 | \r | |
15 | ?>\r |