Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/11/2003, 04:19
Avatar de jpinedo
jpinedo
Colaborador
 
Fecha de Ingreso: septiembre-2003
Ubicación: Lima, Perú
Mensajes: 3.120
Antigüedad: 23 años, 1 mes
Puntos: 41
Bueno... la función nl2br hace justamente lo que pones en str_replace(...) O sea que también podrías haber hecho:
Código PHP:
$motd = "/dir/archivo.html";
$file = fopen($motd, "r");
$content = nl2br(fread($file, filesize($motd)));
fclose($file);
print 
$content; 
saludos