ircg_list() will request a list of users in the channel. The answer is sent to the output defined by ircg_set_file() or ircg_set_current(). Returns TRUE on success or FALSE on failure.
Example 1. ircg_list() example
<?php
// connect to server $id = ircg_pconnect($nickname, $ip, $port);
// set to output to a file ircg_set_file($id, 'irc_output.html');
// try to join a channel if (!ircg_join($id, $channel)) { echo "Cannot /join $channel<br />"; }
// send list command ircg_list($id, $channel);
// wait for output to arrive sleep(5);
// disconnect ircg_disconnect($id,'Bye World');
// output everything readfile('irc_output.html');
?>
This example will output something similar to:
... Channel #channel has n users and the topic is 'Topic' End of LIST ...
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?