Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: ircg_list - Manual
[go: Go Back, main page]

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

search for in the

ircg_lookup_format_messages" width="11" height="7"/> <ircg_kick
Last updated: Wed, 01 Nov 2006
view this page in

ircg_list

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

ircg_list -- チャンネル内のトピック/ユーザの数を取得する

説明

bool ircg_list ( resource connection, string channel )

ircg_list() は、channel の中のユーザ数を要求します。結果は、 ircg_set_file() あるいは ircg_set_current() で定義した出力に返されます。 成功した場合に TRUE を、失敗した場合に FALSE を返します。

例 1. ircg_list() の例

<?php

// サーバに接続します
$id = ircg_pconnect($nickname, $ip, $port);

// 出力をファイルに設定します
ircg_set_file($id, 'irc_output.html');

// チャンネルに参加します
if (!ircg_join($id, $channel)) {
   echo
"Cannot /join $channel<br />";
}

// list コマンドを送信します
ircg_list($id, $channel);

// 出力が返されるのを待ちます
sleep(5);

// 切断します
ircg_disconnect($id,'Bye World');

// すべてを出力します
readfile('irc_output.html');

?>

この例は、以下のような結果を出力します。

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

ircg_set_file()ircg_set_current() および ircg_who() も参照ください。



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

 
show source | credits | sitemap | contact | advertising | mirror sites