Ver Mensaje Individual
  #9 (permalink)  
Antiguo 05/02/2013, 10:28
Avatar de cuasatar
cuasatar
 
Fecha de Ingreso: junio-2011
Ubicación: Bogotá Rock City
Mensajes: 1.230
Antigüedad: 15 años, 4 meses
Puntos: 181
Respuesta: No consigo ejecutar los archivos php con xampp

Por favor, haz caso a lo que se te dice.

Código PHP:
<html>
<body>
<?php
$archivo 
= "contador.txt";

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

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

fclose($abre);

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

$total = $total + 1;

$grabar = fwrite($abre, $total);

fclose($abre);

echo 
"<font face='verdana' size='2'style='color : yellow'>Total de visitas:".$total."</font>";
?>
</body>
</html>
Le cambie el tag <? por <?php y funciona perfectamente en xampp. No esperes que te funcione si no sigues las sugerencias que se te hacen.
__________________
Blog de humor http://elcuasatar.net63.net/