I am making a web application that allows someone to create a website through the various steps of the app. The system is based on templates, that a user picks and then chooses the content to go into it. I have all the info stored in a session variable and every template uses this session variable to put the content in.
I need the ability to save these pages as HTML files so that it can be uploaded to a server and used as a site. The problem is when I try to copy the file, it keeps the PHP in the file - and does not execute the php. I need to know how to execute a php file and then get the content of it so that I can store it into another file as just HTML.
How would I best go about doing this?