Use ob functions to achieve static PHP website pages, obphp
Converting PHP Execution pages to HTML is one of the so-called static PHP methods.
Other methods include template replacement and opcache.
Static functions:
Improves website response speed
Cache is widely used in actual use, which can reduce access to the server database and improve the running speed. Currently, many CMS Content Management systems frequently use caching mechanisms to improve system operation efficiency. The following
Ctags View a good tool for function definitionCtags-r Build Tags file in current directory650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/82/11/wKioL1dKkXDwXAxAAAAKU6-fnY8001.png "title=" Picture 1.png "alt=" Wkiol1dkkxdwxaxaaaaku6-fny8001
Copy Code code as follows:
Add Ob_start () at the beginning of your service;
Ob_start ();
Here's your code.
Add Ob_end_clean () at the end and output this page to a variable
$temp = Ob_get_contents ();
Ob_end_clean ();
The output control function gives you a free rein in the outputs of the data in the script. It's very useful, especially for: when you want to output the file header after the data has been exported. Output control functions do not use header () or
Ob_flush/flush in the manual description, are refreshing output buffer, and also need to support the use, so will lead to a lot of people confused ...
In fact, they are different objects of operation, in some cases, flush do not do anything at all.
Using PHP to control the user's browser--ob_* series functions
The output control function gives you a free rein in the outputs of the data in the script. It's very useful, especially for: when you want to output the file header after the data has
PHP summarizes the methods for generating HTML pure static web pages for the entire website. Copy the code as follows :? Php adds ob_start (); ob_start () at your start. Below is how your code adds ob_end_clean () to the end and outputs this page to
Use PHP's ob_start (); to control your browser cache !. The OutputControl function allows you to control the output of data in the script. It is very useful, especially when you want to output the file header after the data has been output. The
Note: I don't want to write it when I write it in half, so I am glad that the OutputControl function allows you to freely control the data output in the script. It is very useful, especially when you want to output the file header after the data has
Using PHP to control the user's browser-ob _ * series functions using OutputControl allows you to freely control the data output in the script. It is very useful, especially when you want to output the file header after the data has been output. The
Introduction to php basic functions: this is a detailed page of php basic functions. it introduces php related knowledge, skills, experience, and some php source code.
Class = 'pingjiaf' frameborder = '0' src = 'http: //
RMAN goes deep into parsing-RMANRMAN In the Memory creates some buffers in the memory, and then writes data blocks to the backup through these buffers. Memory utilization is related to the overall size of PGA (sometimes SGA. Memory Buffer
RMAN goes
Php ob_start and ob_end_flush () are the buffer output functions of php.
Ob_start ([string output_callback])-open the output buffer. All output information is not directly sent to the browser, but saved in the output buffer. An optional callback
For example, some information remains unchanged, but the information that can be changed is stored in the cache to speed up the display speed. This is very valuable. For the so-called cache, the common understanding is that some shared information
Use PHP's ob_start ();
Control your browser cache
The Output Control function allows you to freely Control the Output of data in the script. It is very useful, especially when you want to output the file header after the data has been output. The
PHP Method for downloading files using file streams (Appendix: Solve the Problem of garbled characters in the downloaded file content ),
I remember that I used private game servers in high school. At that time, the game homepage was written in PHP.
1, Flush: Flush the contents of the buffer, output. function Format: Flush () Description: This function is often used and is highly efficient. 2, Ob_start: Open output buffer function format: void Ob_start (void) Description: When the buffer is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service