Added lot of junk laying around on harvie.cz
[mirrors/Programs.git] / php / skripty / terminal_connect.php
diff --git a/php/skripty/terminal_connect.php b/php/skripty/terminal_connect.php
new file mode 100644 (file)
index 0000000..4857e9c
--- /dev/null
@@ -0,0 +1,11 @@
+<?php\r
+\r
+$pfp = popen ("cmd.exe", "rw");\r
+$ifp = fopen ("php://stdin", "r");\r
+\r
+while($pfp) {\r
+  echo (fgetc($pfp));\r
+  if (feof($ifp)) { fwrite ($pfp, fgetc($ifp)); }\r
+}\r
+\r
+?>\r
This page took 0.095873 seconds and 4 git commands to generate.