Home | Scripts | Tutorials | Books | Hosting | Forums | Links|

Navigation:

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links






 
 

SPONSORS



 
 

ICQ status

hooray a user submission thanks to jim .

<?
function get_status($uin){
/*************************************
* Copyright © 2000 Scriptmakers.com *
* Feel free to edit, modify and *
* redistribute as long as this *
* message is kept intact. *
*************************************/
$fp = fsockopen ("wwp.icq.com", 80, &$errno, &$errstr, 30);
if(!$fp){
echo "$errstr ($errno)<br>\n";
}else{
fputs($fp, "GET /scripts/online.dll?icq=$uin&img=5 HTTP/1.0\n\n");
$do = 'no';
while(!feof($fp)) {
$line = fgets ($fp,128);
$do = ($do == 'yes')?'yes':(eregi("^GIF89", $line))?'yes':'no';;
if($do == 'yes'){
if(ereg("á7@ ±40", $line)){
return 'online';
}elseif(ereg("áw` ±40", $line)){
return 'offline';
}elseif(ereg("S³IѱèJ", $line)){
return 'disabled';
}
}
}
fclose($fp);
}
return 'unknown';
}
?>
Example
<?

$uin = 41283698;
echo get_status($uin);
?>

Example

unknown