Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/01/2006, 15:56
DJJJ
 
Fecha de Ingreso: octubre-2005
Mensajes: 407
Antigüedad: 18 años, 6 meses
Puntos: 2
usuarios onlinea actualizacion automatica

hola tengo el siguiente script

pero necesito que cada 60 segundo se actualize automaticamente
como puedo hacer, yo lo he probado y no se actualiza automaticamente

Código PHP:
<?php

$rip 
$_SERVER['REMOTE_ADDR'];
$sd  time();
$count 1;

$file1 "HUOa/ip.txt";
$lines file($file1);
$line2 "";

foreach (
$lines as $line_num => $line)
    {
        
//echo $line."<br>";
        
$fp strpos($line,'****');
        
$nam substr($line,0,$fp);
        
$sp strpos($line,'++++');
        
$val substr($line,$fp+4,$sp-($fp+4));
        
$diff $sd-$val;
        if(
$diff 300 && $nam != $rip)
            {
             
$count $count+1;
             
$line2 $line2.$line;
             
//echo $line2; 
            
}
    }

$my $rip."****".$sd."++++\n";
$open1 fopen($file1"w");
fwrite($open1,"$line2");
fwrite($open1,"$my");
fclose($open1);

echo 
"<table width=180 height=30 bgcolor=#fdfdfd style=\"border: 1px green solid;\"><tr><td align=left valign=top>";
echo 
"<span style=\"font-family: verdana,arial,helvetica; font-size: 10px;\">";
echo 
"<a style=\"text-decoration: none; background-color: green; color: #ddccdd;\" href=\"http://www.hscripts.com\">H</a></span></td><td align=center>";
echo 
"<span style=\"font-family: verdana,arial,helvetica; font-size: 11px; font-weight: bold; color: #aaccaa;\">";
echo 
"Total users online - <font color=red>$count</font></span><br>";
echo 
"</td></tr></table>";
?>

graciasssss

saludos
__________________
DJJJ