Here is some PHP code that checks for the status of a person using AIM (AOL Instant Messenger)...I can get the general idea of the code, but can some php guy explain to me the different parameters and what they are for?
Of speical interest to me is the fsockopen statement. And what does the fputs statement return??
I'm trying to understand it to rewrite it in Tcl :(
<?
// Connect to AOL server
$url = "" href="http://big.oscar.aol.com">big.oscar.aol.com", 80, &$errno, &$errstr, 3);
// Query the Server
fputs($url, "GET /spoonosupport? HTTP/1.0\n\n");
// See resultant page
while(!feof($url)){
$feofi++;
$page .= fread($url,256);
if($feofi > 10){
$page = "offline";
break;
}
}
fclose($url);
// determine online status
if(strstr($page, "online")){
echo "the user is online";
}else{
echo "the user is offline";
}
?>
thanx
--
Al-Faisal El-Dajani
Tel: +962-7-77 799 781
P.O Box: 140056
11814 Amman, Jordan
May the source be with you_______________________________________________ General mailing list [email protected] http://mail.jolug.org/mailman/listinfo/general_jolug.org
