\n"; flush(); echo "Writing...\n"; flush(); fwrite($clientsocket, $command, strlen($command)); echo "Reading...\n"; flush(); $response = fgets($clientsocket, 4096); echo $response, ""; flush(); } ?>