downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ircg_channel_mode> <ingres_rollback
Last updated: Wed, 22 Jul 2009

view this page in

IRC Gateway Functions

Introductie

With IRCG you can rapidly stream XML data to thousands of concurrently connected users. This can be used to build powerful, extensible interactive platforms such as online games and webchats. IRCG also features support for a non-streaming mode where a helper application reformats incoming data and supplies static file snippets in special formats such as cHTML (i-mode) or WML (WAP). These static files are then delivered by the high-performance web server.

Up to v4, IRCG runs under these platforms:

  • AIX

  • FreeBSD

  • HP-UX

  • Irix

  • Linux

  • Solaris

  • Tru64

  • Windows

Note: This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 5.1.0.

Installatie

Detailed installation instructions can be found at » http://www.schumann.cx/ircg/. We urge you to use the provided installation script.

It is not recommended, but you can try enable IRCG support yourself. Provide the path to the ircg-config script, --with-ircg-config=path/to/irc-config and in addition add --with-ircg to your configure line.

Configuratie tijdens scriptuitvoer

Deze extensie gebruikt geen configuratie regels.

Resource types

Voorgedefinieerde constanten

Deze extensie definieert geen constanten.

Table of Contents



ircg_channel_mode> <ingres_rollback
Last updated: Wed, 22 Jul 2009
 
add a note add a note User Contributed Notes
IRC Gateway
Fahad Sadah
08-Apr-2008 04:43
In response to what zonakusu [at] gmail [dot] com said, you do not include the :nick!username@hostname. The IRC server adds it to everyone your message is shown to. Also, the : in front of your message is not neccessary!
zonakusu [at] gmail [dot] com
30-Nov-2006 09:44
I suggest you use a raw socket for connecting. It gives you more freedom to work with. And it is just more nice.

All that these commands would do is sending stuff like this to the server:
:nick@hostname PRIVMSG #channel :What you would like to say

To send a message to the channel "#channel".
malo at dasevil dot de
05-May-2006 05:59
If sb need a simple PHP IRC Class:

http://sf.net/projects/irccc
16-Apr-2004 03:50
watch out, ircg is shareware as it seems.
Quoting from http://schumann.cx/ircg/ircg4.php :
The IRCG 4 Free Trial does not allow more than 10 concurrent connections
Answer: The IRCG 4 Free Trial is limited to 10 concurrent connections. You can buy an unlimited license by contacting us here.

Poor job, documentation team. Do you like promoting shareware in your manual just because its from a core developer?
darkelder at php dot net
12-Nov-2002 06: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<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!!!");

?>

ircg_channel_mode> <ingres_rollback
Last updated: Wed, 22 Jul 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites