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: 20 años, 7 meses
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($filefilesize($motd)));
fclose($file);
print 
$content
saludos