Added lot of junk laying around on harvie.cz
[mirrors/Programs.git] / php / skripty / proc_test.php
diff --git a/php/skripty/proc_test.php b/php/skripty/proc_test.php
new file mode 100644 (file)
index 0000000..d1b7528
--- /dev/null
@@ -0,0 +1,15 @@
+<?php\r
+\r
+$desc = array(\r
+   0 => array("pipe", "r"),  // stdin is a pipe that the child will read from\r
+   1 => array("pipe", "w"),  // stdout is a pipe that the child will write to\r
+   2 => array("pipe", "r") // stderr is a file to write to\r
+);\r
+\r
+$proc = proc_open("proctest.exe", $desc, $pipes);\r
+sleep(10);\r
+proc_terminate($proc);\r
+proc_close($proc);\r
+proc_terminate($proc);\r
+\r
+?>\r
This page took 0.135601 seconds and 4 git commands to generate.