Alright, I use newspro as a posting script for my staff. I want to include the whole news.txt into a table on the site, and I use PHP through the whole site really. How would I do this? Any help is needed! Thanks.
just use the include command.
include("news.txt");
it will add the contants of the txt file as if it is html so any tags will be used when the page is displayed.
Mark.
If you really mean "just copy the contents of the text file intot the table" , what I do would be something like:
<table><tr><td><pre> <?php include('news.txt')?> </pre></td></tr></table>
<? require( "file.txt" ); ?>
There should be pre tags in wrapping the <? ?> in there, to stop newlines being gobbled by the browser. Unfortunately, this forum display gobbled them :-)