Call us Toll-Free:
Email us


Yahoo messenger status

Code Wizard, 12-30-2006

This will echo on your webpage whether your Yahoo messenger status is online or offline. Its a bit messy, but you get the general idea :)

I seen lots of ICQ ones, but no Yahoo ones. So here it is.

You could change the $online/$offline to point to graphics, and I guess you could link it to a form so that anyone can put in any Yahoo ID and see the status via your page...


// Check page to see if on/off line:
$opener = "";

// Yahoo ID:
$id = "YOUR_YAHOO_ID";

// offline:
$offline="$id is presently offline";

// online:
$online="$id is presently online";

// start:

$file = fopen("$opener"."$id", "r");
$read = fread($file, 200);

$read = ereg_replace($id, "", $read);

if ($y = strstr ($read, "NOT")) {
$x = "$offline";
elseif ($y = strstr ($read, "ONLINE")) {
$x = "$online";

// print status
echo ("$x");

// close file

Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

Post your comments

Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.

About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions