Quick Search:
 
 PHP Code: Yahoo Online Status Jump to:  
Category: >> PHP Code >> Yahoo Online Status  

<< lastnext >>

Snippet Name: Yahoo Online Status

Description: Checks status of a Yahoo user by User ID.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 01st, 2009

<?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)); 
    } 
    } 
?>
 


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org