Login   Register  
PHP Classes
elePHPant
Icontem

File: priklad.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2005-04-09 04:17
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();
?>