PHP Classes

File: priklad.php

Recommend this page to a friend!
  Classes of Vítek Jiří   ICQ status tester   priklad.php   Download  
File: priklad.php
Role: Example script
Content type: text/plain
Description: example
Class: ICQ status tester
Retrieve the online status of an ICQ user
Author: By
Last change:
Date: 19 years ago
Size: 683 bytes
 

Contents

Class file image Download
<?php
// priklady uin cisel
$icq_numbers = array( "2811537",
                     
"3507466",
                     
"125522049",
                     
"245334232",
                     
"243860586" );# moje vlastni


require_once("ICQStatus.php");

// vytvoreni objektu
$oICQ = new ICQStatus();

// probrani pole cisel
foreach( $icq_numbers as $icq_number ) {
     if( !
$status = $oICQ->status( $icq_number ) ) // overeni statusu
    
{
        
print_r($oICQ->$error);
            break;
        }
       
$status = explode(" ",$status);
        echo
'UIN: '. $icq_number .' je '.$status[0] .' <img src="'.$status[1].'" alt="'.$status[0].'" /> - isOnline :'.$oICQ->isOnline($icq_number)." \r\n";
}

exit();
?>