how to read a .txt file showing the html tag and interpreting the \n
in the file.
I'm using a script php to read those files:
echo readfile("file.txt");
thanks.
how to read a .txt file showing the html tag and interpreting the \n
in the file.
I'm using a script php to read those files:
echo readfile("file.txt");
thanks.
You are looking for nl2br
function.
echo nl2br(readfile("file.txt"));