I have a .txt file on my web server (locally) and wish to display the contents within a page (stored on the same server) via PHP echo.
The .txt file contains a numbe
if you just want to show the file itself:
header('Content-Type: text/plain'); header('Content-Disposition: inline; filename="filename.txt"'); readfile(path);