I want to convert index.php file into html file for quick response to client. It interacts with database(mysql) only single time in 24 hours. So when it interacts and updates content i would be able to convert it into an html file by clicking on a link or button. it has also include some other php files like header/footer.php.
Thanks in advance.
I want to convert index.php file into html file for quick response to client.
Share
I’m not sure if you mean ‘quick response’ in the sense that you want pages to load faster or if you mean you want to send your client a static version of the site.
If you mean you want to load pages quicker, you could cache pages. Since you only update content once every 24 hours, you could clear the cache once every 24 hours…
This blog post gives one method of caching, and at the end he discusses a number of libraries that exist that you can use instead to achieve this.