前の記事 «:HTTPプロトコルでPINGする
次の記事 »:PHP5でもっとリッチに!OSCON 2006資料

PHP5でICQステータスを得るクラスライブラリ

2006年07月31日

スポンサード リンク
PHP Classes - Class: ICQ Status class
This class is meant to retrive the status of ICQ user given his UIN (User Identification Number).

PHP5でICQステータスを得るクラスライブラリ。
クラスになっていて次のようにシンプルに使えます。

<?php

$icq_numbers = array("145133640"// my own number
                     
"2811537",
                     
"3507466",
                     
"125522049",
                     
"245334232",
                     
"238665"
        
);


require(
dirname($_SERVER["PHP_SELF"]).DIRECTORY_SEPARATOR."icq_status_class.php5");

foreach( $icq_numbers as $icq_number )
{

    if( !
$status ICQ::status$icq_number ) )
    {

        
print_r(ICQ::$error);
        break;
    }
    
$status explode(" ",$status);
    
print_r("The status for uin: "$icq_number ." is ".$status[0] ." <img src="".$status[1].""> rn" );
}

?> 
 

 UINを与えてステータスを表示するスクリプトになってるようです。

スポンサード リンク

投稿者 KJ : 2006年07月31日 09:03 | ブックマークに追加する Subscribe with livedoor Reader
間違いの指摘をしていただける方はメールでお願いします


本を執筆しました。