Posted: Fri Feb 23, 2007 3:48 am
UGH I haven't had a chance to reply with work :@
Ok so I tried removing the '@' operator before fsockopen and now I get an error message:
btw irc.com isn't the real server but the actual server I am trying to get it connecting to is up and running and the above script works to connect on my website, just not my friends. Really annoying me now lol
Any further help greatly appreciated - Thanks!
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!