Introduce a static file Php generation class, in the development of PHP Web site for website promotion and SEO needs, need to site or local static processing, PHP static simple understanding is to make the site Generation page in the form of static HTML display in front of the visitors, PHP static pure static and pseudo-static , the difference between the two is that PHP generates static pages with different processing mechanisms.
The first step is to first download a static file that we need to use for this lesson PHP generated class library: http://www.php.cn/xiazai/leiku/545
The second step, after the download, find the PHP class files we need, unzip to our local directory, create a new PHP file!
After the third step, we will call this class in the new PHP file, and instantiate the class:
<?phpinclude_once "caozuo.php";//Introduce class file $s=new createhtml (); Instantiate $s->start ();? >
Run the file and get the results as shown:
Attention:
1. The above example shows the content of the static page we generate.
2. A new folder has been created locally, and the subfolders are created with three subfolders in the name of month and day: