PHP Problem

Status
Not open for further replies.
Messages
341
Reaction score
0
Points
0
I get an error when using IRCG commands. Can someone tell me the path to your library of extentions that includes IRCG support?
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Must be a problem with the PHP configuration, I am sure you are using the right function. Ask bryon... :dunno:
Could you post the whole script?
 
Last edited:
Messages
341
Reaction score
0
Points
0
<?

/* change it to your own nickname */
$nickname = "testBot901";
/* choice your irc server */
$server = "irc.quakenet.org";
/* change to your channel */
$channel = "#hellwolf";
/* do not change it if you do not know what means :) */
$port = "6667";

/* as ircg cannot resolve hosts, we use PHP internal function to get the IP */
$ip = gethostbyname($server);

/* connection */
$id = ircg_pconnect($nickname,$ip,$port);

/* checking if connected */
if (!ircg_is_conn_alive($id))
{
print "Cannot connect<br>";
exit;
}

/* joining a channel */
if (!ircg_join($id,$channel))
{
print "Cannot join to $chanell<br>";
}

/* getting messages - you must have this in your php file */
ircg_set_current($id);

/* send messages to your channel and you */
ircg_msg($id,$channel,"Hello $channel!!");
ircg_msg($id,$nickname,"This message goes to me!!!");

?>
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
I could compile it in, if you'd like. Would you like me to?

I can do it sometime over the course of the next day or so, when I get a chance.
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
If you'd like me to do this, please PM me. Have the title be something such as "PHP v2 - IRCG." That way I'll see it.
 
Status
Not open for further replies.
Top