<?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";
}
?>
|