Delete api.php
This commit is contained in:
parent
8f24b8c646
commit
364338408b
@ -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;
|
Loading…
Reference in New Issue
Block a user