Código PHP:
<?php
function remplazar($archivo, $cadena, $por)
{
$texto = "";
$fp = fopen($archivo,"r");
while ($linea = fgets($fp,filesize($archivo)))
{
$linea = str_replace("$cadena","$por",$linea);
$texto .= $linea;
}
return $texto;
}
$texto = remplazar(header.txt, , n<br>);
echo $texto;
?>
Un saludo
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)