I have made an IRC bot running on the MinTTY terminal emu and it is programmed in php. How would I close the connection between the server and bot? I've done it on my web version but this is a little different on MinTTY... Could I just use fclose($start); ? Thanks in advance. P.S; Below is a code snippet of how the bot connects:
$socket = fsockopen("$server", $port);
fputs($socket,"USER $nick $nick $nick $nick :$nick\n");
fputs($socket,"NICK $nick\n");
fputs($socket,"JOIN ".$chan."\n");