I have a text file "applications.txt"
I want to show on the web using PHP, I have this line of code:
<?php
$myfilename = "applications.txt";
if(file_exists($myfilename)){
echo file_get_contents($myfilename);
}
?>
The contents of the text file looks like this:
Line one
Line two
Line three
However, on the webpage, it looks like this:
Line one Line two Line three
How do I make it display the new lines properly?