Ver Mensaje Individual
  #7 (permalink)  
Antiguo 25/11/2013, 17:36
Avatar de elsolodigno
elsolodigno
 
Fecha de Ingreso: agosto-2009
Mensajes: 225
Antigüedad: 14 años, 8 meses
Puntos: 2
Pregunta Respuesta: contador se reestablece a cero

Cita:
Iniciado por xSkArx Ver Mensaje
Y si usas file_get_contents() y file_put_contents()
Gracias por la pronta respuesta, pero sigo sin entender porque se reestablece a 0 el contador, no debería.

Entonces reemplazo:

fread() por file_get_contents() y fifputs() por file_put_contents()?

quedaría así?:

Código PHP:
file_get_contents($fichero_contador);

..............


file_put_contents($fichero); 

Me guían para armarlo?.

Gracias de nuevo.