Added lot of junk laying around on harvie.cz
[mirrors/Programs.git] / php / skripty / terminal_server.php
1 <?php
2
3 $sss = stream_socket_server("tcp://127.0.0.1:81"); echo("A");
4 $sfp = stream_socket_accept($sss); echo("B");
5
6 while($sfp) {
7
8 if (!feof($pfp)) {
9 fwrite ($sfp, fgetc($pfp));
10 }
11
12 $char = fgets($sfp, 1000);
13 if ($char != FALSE) {
14 fwrite ($pfp, $char);
15 }
16
17 }
18
19 echo("C");
20
21 ?>
This page took 0.22716 seconds and 4 git commands to generate.