I’d like to have a php page that will retrieve the 10 most recent articles submitted to a database and create a static html page with the results from the query.
The idea is to reduce the load on my mysql db by only hitting the db once instead of hitting it every time a visitor views the page. I’d like to use a cron job to run the php page / script at a scheduled time.
The querying of the database I can do, but how to code the generation of the html page is quite frankly beyond me
Any ideas on how to do this would be most welcome
Thanks