|
|
|
|
|
<?
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("SIѱJ", $line)){
return 'disabled';
}
}
}
fclose($fp);
}
return 'unknown';
}
?> |
|
| This is a simple PHP3 script to send an instant msg to the webmaster (only for Windows NT). Categories : PHP, Misc, Miscellaneous | | | What does PHP stand for? Categories : Miscellaneous, PHP | | | How to display any array in several rows and columns of a table. Not just
in one column or in alternate rows. This example shows a nice color table
generated with PHP, but can be used with any array values(e.g. Database) Categories : Arrays, PHP, Miscellaneous, Beginner Guides, Graphics | | | Adding a Latest Threads Section to your website Categories : PHP, Miscellaneous | | | Invision Forums Latest Threads list Categories : PHP, Miscellaneous, Databases, MySQL | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | | | Function Query2Array will read an PEAR-DB-Query-Result into an Array.
You may specify a Column used as Array-Keys,
and you may specify the Number of Rows to skip at the beginning and the
Number to fetch (-1 = infinite). Categories : Functions, PHP, Databases | | | Is_serialized() before passing variables to unserialize() Categories : PHP, Serialize | | | decoct -- Decimal to octal Categories : PHP, PHP Functions, Math. | | | PHP Dump in html format the contents of one array variable with a recursive list of the nested array variables inside. Categories : PHP, Arrays, Variables | | | PHPRecommend v1.0 - Recommend this page to a friend script written in PHP. Easy to install Categories : PHP, URLs, Complete Programs, Email, Site Planning | | | PHP4 session helper HTML file.
Categories : PHP, Java Script, HTML and PHP, Sessions | | | Use of bitmasks to represent permissions Categories : PHP, Authentication, Bitwise Operators, Security, PHP Classes | | | Stronghold 2.3 PHP3RC4 PHP3 COMPILE FAILURE parse error httpd.h Categories : Installation, PHP | | | Multiple Search using PHP and Mysql Categories : PHP, Databases, General SQL, MySQL | |
| |
| |
|