I'm trying to get phpIRC to work for me to say in the least. What I need it to do is connect to the IRC server, run some commands then disconnect. That's all I need. I have a little script that connects changes the nick name and disconnects. But that's really all I can get it to do. I thought I had to use the irc_put_message() function that's in the phpIRC library. But I'm not really sure. Here's what I've created so far. If you know how to submit the commands please tell me.
//////////////////////////////Code....
<?php
set_time_limit(0);
require("phpIRC.inc.php3");
require("phpIRC.php3");
if(irc_init() != 0){
flush();
irc_connect($irc_server,$port, 0);
flush();
$chat_channel = "#haize";
irc_join($chat_channel);
irc_change_nick("GryphonicPlague");
flush();
$thismessage = "/nick ThisNick";
irc_put_message($thismessage);
flush();
irc_disconnect("Goodbye all");
flush();
}
?>
Any Help on this would be greatly appreciated.
Plague