PHP page static introduction, PHP page static
/**
*php page static is divided into the following steps:
* * Open Output Control cache
Return the contents of the output buffer.
Write a string to a file
The contents of the buffer are washed out.
*/
1. Open the output control cache
Ob_start ();
?>
PHP page static
PHP page static
2. Return the contents of the output buffer
$contents = Ob_get_contents ();
3. Writing a string to a file
File_put_contents ("newindex.html", $contents);
4. Flushing out the contents of the buffer
Ob_flush ();
?>
http://www.bkjia.com/PHPjc/1125068.html www.bkjia.com true http://www.bkjia.com/PHPjc/1125068.html techarticle PHP page static to get started, php page static? PHP/** *php page Static is divided into the following steps: *. Open output Control cache *. Returns the contents of the output buffer. Write a string to ...