How to create database free PHP that pulls other pages?

Is it possible to do this:

Create one single php page that reads in other php text only pages.

For example. I have one page called “latest_news.php”

On a separate page “news.php” there are 5 links to news articles “01.php, 02.php, 03.php, 04.php, 05.php”

Is there a simple way when the person clicks on one of the 5 links links it is fed to the “latest_news.php” page so I don’t have to create 5 separate pages with headers, footers, images, etc without using a database?

Does this make since? latest_news.php is one page that pulls in whatever text is needed depending on the link th person clicked on…like latest_news.php?=01

yes, it possible.

:lol: I think the OP wanted a little more clarification than that, Shrapnel :wink:

So, first of all you have to determine which was the latest news item. I’ll leave that for you to find out, unless you have trouble with it.

Then, simply include() that file. Including it will allow PHP scripts in it to run, so if you don’t want that then use readfile() instead.

found it!