PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Davood Jafari  >  Yahoo Status Checker  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Sample File
Class: Yahoo Status Checker
Check the online status of an Yahoo messenger user
Author: By
Last change:
Date: 6 years ago
Size: 654 bytes
 

Contents

Class file image Download
<?PHP

/**********************************************************************************************

* Author Davood Jafari.
* Website www.DavoodJafari.ir
* Email ISDavood@gmail.com
* ClassName Yahoo Status Checker
* Copyright(C) 2009 Davood Jafari, All rights reserved.

**********************************************************************************************/

require_once('Check.Class.php');

$MyYahooID = "pcparsi_com";
$Check = new YahooCheck( $MyYahooID );
$Result = $Check->GetResult();

if(
$Result == 0 )
{
    print
"Online";
} else
if(
$Result == 1 )
{
    print
"Offline";
} else
{
    print
"Unknown";
}
?>