What is PHP staticization
#The simple understanding of PHP staticization is to make the website-generated pages displayed in front of visitors in the form of static HTML. PHP staticization It is divided into pure static and pseudo-static. The difference between the two lies in the processing mechanism of PHP generating static pages.
How to generate static HTML pages with PHP
1. Use PHP templates to generate static pages
PHP templates are very convenient to achieve staticization, such as installation and Use PHP Smarty to achieve static website.
2. Use PHP file reading and writing functions to generate static pages
PHP generates static page example code
$out1 = "< html>