GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
php/skripty/terminal_connect.php
@@ -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.142732 seconds
and
4
git commands to generate.