Hi, This code alternative check status function.
function check_status($uin){
$gonline="0,,4367,00.gif";
$goffline="0,,4349,00.gif";
$gnoicq="0,,4386,00.gif";
if(!($myFile=@fopen("http://web.icq.com/wwp?Uin=$uin","r")))
{echo "Can Not Open File"; exit;}
while(!feof($myFile))
{ $buffer = fgets($myFile,4096);
$tot=$tot.$buffer;
} fclose($myFile);
if(strstr($tot,$gonline)) {
return "Online";}
if(strstr($tot,$goffline)) {
return "Offline";}
if(strstr($tot,$gnoicq)) {
return "NoICQ";}
}
echo check_status("17168445");