Output text file with line breaks in PHP

Issos

New Member
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?Thanks.\[code\]<html><head></head><body> $fh = fopen("filename.txt", 'r'); $pageText = fread($fh, 25000); echo $pageText;</body></html>\[/code\]
 
Back
Top