Ok so I tried removing the '@' operator before fsockopen and now I get an error message:
Warning: fsockopen() [function.fsockopen]: unable to connect to irc.com:6667 in /home/cymru/public_html/alpha/registernick.php on line 30
Code: Select all
set_time_limit(0);
$server_host = "irc.com";
$server_port = "6667";
$nickname = $nick;
$server = array(); //we will use an array to store all the server data.
$server['SOCKET'] = fsockopen($server_host, $server_port, $errno, $errstr, 2);
if($server['SOCKET'])
{
SendCommand("NICK $nickname\n\r");
SendCommand("USER $nickname test test :IRC.com NickRegBot\n\r");
}Any further help greatly appreciated - Thanks!