Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/07/2011, 12:44
ZeThito
 
Fecha de Ingreso: septiembre-2010
Mensajes: 147
Antigüedad: 16 años
Puntos: 3
Código para modificar archivo con errores.

Código PHP:

<?php
$filename 
= "texto.txt";
$_file = file($filename);

$fp = fopen($filename, "a+");

for(
$i=0; $i>count($_file); $i++){
 
 
fwrite($fp, $_file[$i].".192\r\n");

}

fclose($fp);
unlink($_file);
Me aparece un error con la función fwrite(), espero que me puedan ayudar, gracias =)