|
|
XLVI. IRC Gateway FunktionenWas ist ircg?
IRCG erm�glicht die Entwicklung schneller und skalierbarer
Webchats die �ber einen privaten oder �ffentlichen IRC-Server
kommunizieren.
Plattformen
IRCG kann auf folgenden Betriebssystemen verwendet werden:
AIX FreeBSD HP-UX Irix Linux Solaris Tru64
Ben�tigte Software
Um die IRCG-Funktionen zu verwenden, muss folgende Software
installiert sein:
von
Sascha Schumann.
webserver
Installation
Eine ausf�hrliche Installationsanleitung befindet sich .
User Contributed Notes IRC Gateway Funktionen |
|
ssruprai at hotmail dot com
03-May-2002 01:55 |
|
You may face problems with php 4.20 configure script when using
"--with-ircg-config" without providing any path to script file.
When it tries to configure ircg it just starts printing --ldflags
continuously.
checking for IRCG support...
yes --ldflags --ldflags --ldflags --ldflags --ldflags --ldflags --ldflags --ldflags
So
always provide path to ircg-config file as in
--with-ircg-config=/user/local/bin/ircg-config
|
|
darkelder at php dot net
12-Nov-2002 04:16 |
|
This is an example to show how to connect to a IRC server, how to join a
channel, send and receive messages.
<?PHP
/* change it to
your own nickname
*/ $nickname = "myOwnNick"; /* choice your
irc server
*/ $server = "irc.brasirc.net"; /* change
to your channel
*/ $channel = "#linux"; /* 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 "; exit; }
/* joining a channel
*/ if
(!ircg_join($id,$channel)) { print "Cannot join to
$chanell "; }
/* 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!!!");
?>
|
|
|
| |