Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/09/2003, 20:42
alexis_lexus
 
Fecha de Ingreso: septiembre-2003
Mensajes: 5
Antigüedad: 20 años, 7 meses
Puntos: 0
<?php
$archivo = "contador.txt";

$abrirarchivo = fopen($archivo, "r");

$total = fread($abrirarchivo, filesize($archivo));

fclose($abrirarchivo);

$abrirarchivo = fopen($archivo, "w");

$savenuevo = fwrite($abrirarchivo, $total);

$total[0] = $total[0] + 1;

//Prueba
$total[1] = 100
$total[2] = > 100
$destino = [email protected]
$asunto = Contador web
$mensaje = La pagina web ha recibido ".$total." visitas .

if ($total[0] == $total[1]) {
mail ($destino, $asunto, $mensaje) ;
}
else ( $total[2]) {
fclose($abrirarchivo);
}

fclose($abrirarchivo);
?>



Esta mal la parte de //Prueba

Gracias