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
Use PHP's fopen
Here, try this (assuming it's a small file!):
<?php echo file_get_contents( "filename.php" ); // get the contents, and echo it out. ?>
Documentation is here.