Browse Source

Delete api.php

André Peters 7 years ago
parent
commit
364338408b
1 changed files with 0 additions and 32 deletions
  1. 0 32
      data/web/api.php

+ 0 - 32
data/web/api.php

@@ -1,32 +0,0 @@
-<?php
-set_time_limit (0);
-
-$address = '0.0.0.0';
-
-$port = 7777;
-$con = 1;
-$word = "";
-
-$sock = socket_create(AF_INET, SOCK_STREAM, 0);
-$bind = socket_bind($sock, $address, $port);
-
-socket_listen($sock);
-
-while ($con == 1)
-{
-    $client = socket_accept($sock);
-    $input = socket_read($client, 2024);
-
-    if ($input == 'exit') 
-    {
-        $close = socket_close($sock);
-        $con = 0;
-    }
-
-    if($con == 1)
-    {
-        $word .= $input;
-    }
-}
-
-echo $word;