PhpSnip.com

User Stats

Yahoo Status Checker

The function yahoo_status($user) checks the yahoo status of of the user "$user". The possible "returns" are <b>Online</b>, <b>Offline</b>, and <b>Unknown</b>. <BR><BR>Please report any bugs, comments, or ideas on how to improve this script to <a href="mailto:billzeller@yahoo.com">me</a>.

Info

 Download  View Source (print view)
 Rating : 4.7  Views : 983

Source Code ( 19 lines )

<?
function yahoo_status($user){
 /*************************************
  * Copyright © 2000 Scriptmakers.com *
  * Feel free to edit, modify and     *
  * redistribute as long as this      *
  * message is kept intact.           *
  *************************************/
 $status = @file("http://opi.yahoo.com/online?u=$user");
 $status = $status[0];
 if($status == "$user is ONLINE"){
  return "Online";
 }elseif($status == "$user is NOT ONLINE"){
  return "Offline";
 }else{
  return "Unknown";
 }
}
?>

Search

Subscribe

  Rss Feeds

Sponsors

Advertise