Login   Register  
PHP Classes
elePHPant
Icontem

File: exK2ICQ.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Minka  >  CK2ICQ  >  exK2ICQ.php  >  Download  
File: exK2ICQ.php
Role: Example script
Content type: text/plain
Description: example for the usage of CK2ICQ class
Class: CK2ICQ
ICQ server communication class
Author: By
Last change:
Date: 2003-02-23 17:23
Size: 583 bytes
 

Contents

Class file image Download
<?php
require_once 'CK2ICQ.php';

$icq = new CK2ICQ();
echo 
"checking status of 239788313 (k2s@k2s.sk)<br>";
echo 
"status constant = "$icq->GetStatus(239788313)."<br>";
echo 
"explanation of the status = "$icq->GetText(239788313)."<br>";
echo 
"image of the status = <img src='"$icq->GetIMG(239788313)."'><p>";

if (!
$icq->Prepare("239788313, 177201163")) 
    echo 
$icq->mError_str;
echo 
"the status of the user 177201163 " $icq->GetText(177201163, array("is offline""is online""is unknown""was not obtained from the server duo an error ("$icq->mError_str))."<br>";
?>