PHP Classes

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Alfredo Sanchez  >  Yahoo  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample file that display yahoo id online status
Class: Yahoo
Check the online status of an Yahoo messenger user
Author: By
Last change: added comments to the sample script
Date: 6 years ago
Size: 397 bytes


Class file image Download
// class file needed
include '';

// create an instance of the yahoo class
$ys = new Yahoo();

// assign a yahoo id to check
$id = 'ernmats';

// get the online status of the yahoo id
$status = $ys->Get_status($id);

// display the current status of the yahoo id
if ($status == false)
"$id is offline";
$status == true)
"$id is online";