Added lot of junk laying around on harvie.cz
[mirrors/Programs.git] / php / skripty / terminal_client.php
1 <?php
2
3 $sfp = fsockopen ("127.0.0.1", 24, &$errno, &$errstr, 5);
4 $ifp = fopen ("php://stdin", "r");
5
6 /*
7 while(1) {
8 echo(ord(fgetc($ifp)));
9 }
10 */
11
12 while($sfp) {
13 if (!feof($sfp)) {
14 echo (fgetc($sfp));
15 }
16
17 if (!feof($ifp)) {
18 fwrite ($sfp, fgetc($ifp));
19 }
20 }
21
22 ?>
This page took 0.410017 seconds and 4 git commands to generate.