Zend - The PHP Company




HTTP

Add Code


Checking peoples online (the grabbing countinues...)  

Type: code fragment
Added by: idban
Entered: 14/03/2000
Last modified: 01/12/2007
Rating: *** (9 votes)
Views: 9365
This program werk for checking someone online on Mailinglist on egroups
this sample checking it-center mailing list and find someone called Made
Wiryana if we found him so print that he online vice versa
hoply this program usefull for you


<?
/*This program werk for checking someone online on Mailinglist on egroup
this sample checking it-center mailing list and find someone called Made Wiryana
if we found him so print that he online vice versa
hoply this program usefull for you
greeting to :
My Wife ( dessy )
My brother Mohammad Nafiri 
My friends at satunet.com groups keep on hard werk guys!! 
My Idol Mr. Made Wiryana, this program for you sir!
My Best friend Mr.Brian!!!! hidup cruuuottttt!!

Jakarta 14, March 2000 

idban secandri
idban@satunet.com */

$file=fopen("http://www.egroups.com/messages/itcenter/","r");
if (!
$file) {
    echo 
"error when connectn";
    exit;
    }
 while (!
feof($file)) {
    
$line fgets($file,1024);
    if (
eregi("(.*)Made Wiryana"$line$out)){
    
$i++;
 if (
$i 1) { break; }
if(
$out){ echo "<font color="red"><B>Mr.Made</B> just make a reply on itcenter mailing list</font>n"; die;} 
          }
                      }
   echo 
"duh!,<B>Mr.Made</B> Not Online yet!n";
   
fclose($file);
?>


Usage Example


See the example


Rate This Script





Search



This Category All Categories