The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
Check YIM Status
Posted by: Stephen | April 28, 2007 @ 8:53am
Revision 1 - Original post on April 28, 2007 @ 8:51am
PHP Code
[
Download
]
<?php $yahoo_id = "preacherskid007"; $url = "http://opi.yahoo.com/online?u="."$yahoo_id"; $read = file_get_contents($url); // Determines the online status if (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.";} ?>
Syntax Highlighting
[
Open in new window
]
Author Comments
This is a simple script that will check someone's online status for the Yahoo Instant Messenger System.
Rating
4.51 / 8
876 Votes