Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/03/2009, 17:39
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: problema con fwrite (intros)

Es mejor si haces algo así:
Código php:
Ver original
  1. $archivo=fopen("archivo.txt", "w");
  2.  
  3. for($pos=0; $pos<=3; $pos++)
  4. {
  5.   fwrite($archivo,$pos . PHP_EOL);
  6. }
  7.  
  8. fclose($archivo);

Saludos.