PHP Classes
Icontem

File: example.php5


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hemp Cluster  >  ICQ Status class  >  example.php5  
File: example.php5
Role: Example script
Content type: text/plain
Description: Example File
Class: ICQ Status class
Retrieve the online status of an ICQ user
 

Contents

Class file image Download
<?php
/***************************************************************************
 *                         example.php5
 *                        ----------------------
 *   begin                : Sunday, July 27, 2004
 *   copyright            : (C) 2004 Hemp "Jointy" Cluster
 *   email                : bestmischmaker@web.de
 *
 *   $Id: example.php5, v.0.0.1 hempcluster Exp $
 *
 *    LastChange: <!--DATE-->Samstag den 31.07.2004 -- 23:54:51<!--/DATE-->
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
// some from the internet collected ICQ Numbers
$icq_numbers = array("145133640"// my own number
            
"2811537",
            
"3507466",
                     
"125522049",
                     
"245334232",
                     
"238665" );


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

// Now its avalible to get the status for one or more uins

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]."\"> \r\n" );
}

exit;
?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products