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

search for in the

ircg_lookup_format_messages> <ircg_kick
Last updated: Sun, 25 Nov 2007

view this page in

ircg_list

(PHP 4 >= 4.3.3, PHP 5 <= 5.0.5)

ircg_list — List topic/user count of channel(s)

설명

bool ircg_list ( resource $connection , string $channel )

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().

매개변수

connection

A connection resource handle returned by ircg_pconnect().

channel

The channel name as #name.

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.

예제

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');

?>

위 예제의 출력 예:

...
Channel #channel has n users and the topic is 'Topic'
End of LIST
...



add a note add a note User Contributed Notes
ircg_list
There are no user contributed notes for this page.

ircg_lookup_format_messages> <ircg_kick
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites