Hi people,
The code I'm working with is this:
(in the index.php file)
<? $news_file = "../news/news-main.txt"; require ("news/news.php3"); ?>
(in the news.php3 file)
<?
$news = file($news_file)
echo $news
?>
The contents of news-main.txt is html code, but it will not display on my page. All I see is the word, 'Array' appear in its place.
The really frustrating thing is that I had it working, until I trimmed down the code, but nothing I have removed was necessary, since it was taken from a sample script.
Can anyone enlighten me as to what I'm doing wrong?
Thanks a lot 🙂