added tips to lamer.bash help
[mirrors/Programs.git] / php / skripty / terminal_server.php
CommitLineData
8de51304
H
1<?php\r
2\r
3$sss = stream_socket_server("tcp://127.0.0.1:81"); echo("A");\r
4$sfp = stream_socket_accept($sss); echo("B");\r
5\r
6while($sfp) {\r
7\r
8 if (!feof($pfp)) {\r
9 fwrite ($sfp, fgetc($pfp));\r
10 }\r
11 \r
12 $char = fgets($sfp, 1000);\r
13 if ($char != FALSE) {\r
14 fwrite ($pfp, $char);\r
15 }\r
16 \r
17}\r
18\r
19echo("C");\r
20\r
21?>\r
This page took 0.112863 seconds and 4 git commands to generate.