<?php$yahoo_id = "preacherskid007";$url = "http://opi.yahoo.com/online?u="."$yahoo_id";$read = file_get_contents($url); // Determines the online statusif (preg_match("/mc/", $read) > 0) {$online = 1;} // Output can be a picture, text...if($online == 1) {echo "Yes, $id is online!";}else {echo "Sorry, $id is not online.";}?>