note 41512 added to ref.ircg
| From: | PeterHansen at rn2 dot php dot net | Date: | Tue, 13 Apr 2004 08:21:10 +0000 |
| Subject: | note 41512 added to ref.ircg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68055@lists.php.net to get a copy of this message | ||
Why you don't use
$link=fsockopen($ip,$port);
fputs($link,"PASS ".$pass);
fputs($link,"NICK ".$user);
fputs($link,"USER ".$user." 0 0 :".$realname);
fputs($link,"PRIVMSG ".$channel.":".$text);
fclose($link);
Its so easy ... why I should compile PHP with a additional lib.?
with this script you've the IRC protocol 100% right used!
When you want to connect to Quakenet or so you must only add a function for the PING->PONG event,
but this script is usefull to for short "chanelputs" :D
----
Manual Page -- http://www.php.net/manual/en/ref.ircg.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41512
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41512&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41512&report=yes
Search -- http://master.php.net/manage/user-notes.php