I\'m trying to open a text file and output its contents with the code below. The text file includes line breaks but when I echo the file its unformatted. How do I fix this?<
You need to wrap your PHP code into ?>, and save it as .php or .php5 (depends on your apache set up).
?>
.php
.php5