Mega Code Archive

 
Categories / Php / Site Navigation
 

Yahoo Status

<?php function yahoo($id){ $url = 'http://opi.yahoo.com/online?u='; $data = file_get_contents($url . $id); if (trim(strtolower(strip_tags($data))) != 'user not specified.') { return (strlen($data) == 140) ? 'online' : 'offline'; } else { return trim(strip_tags($data)); } } ?>