PHP static page entry, php page static. PHP static page entry, php page static? Php *** static page is divided into the following steps: * 1. open the output control cache * 2. return the content of the output cache * 3. write a string to the PHP page for static entry, php page for static
/**
* Static PHP pages are divided into the following steps:
* 1. open the output control cache
* 2. return the content in the output cache.
* 3. write a string to a file
* 4. the content in the cache area is washed out.
*/
// 1. open the output control cache
Ob_start ();
?>
Static php page
Static php page
// 2. return the content in the output cache.
$ Contents = ob_get_contents ();
// 3. write a string to a file
File_put_contents ("newindex.html", $ contents );
// 4. wash out the content in the cache area
Ob_flush ();
?>
Why? Php/*** static PHP pages are divided into the following steps: * 1. open the output control cache * 2. return the content in the output cache * 3. write a string to the cache...