PHP output cache ob series functions. Basic principle of ob: If the ob cache is enabled, the echo data is first stored in the ob cache. For header information, it is directly stored in the program cache. When the page is executed to the end, the
OB Cache Introduction
The OB is the abbreviation for output buffering, and the buffer is controlled by the output_buffering variable in the php.ini. The default value is off, which can be set to on to open buffer. After hitting buffer, even if the
buffer----flush () Buffer is a memory address space, and the Linux system default size is typically 4096 (1KB), which is a memory page. It is primarily used to store data between devices that are out of sync or between devices with different
ob, output buffer, is the abbreviation for output buffering, not output cache. OB with the right, is able to have some help on speed, but blindly add the OB function, will only increase the extra burden of the CPU The basic principle of OB: If the
OB, output buffer, is the abbreviation for the output buffering, not the output cache. OB is used to be able to help speed, but blind plus OB function, will only increase the CPU extra burden
The basic principle of OB: If the OB cache is open, then
The basic principle of OB: If the OB cache is turned on, the Echo data is first placed in the OB cache. If header information is placed directly in the program cache. When the page executes to the end, the OB-cached data is put into the program
Use PHP to control the use of the user's browser-ob * function. Using PHP to control the user's browser -- ob * function using OutputControl function allows you to freely control the data output in the script. It is very useful, especially for: when
Functions commonly used in OB series functions
Ob_start (); Open an output buffer, and all output information is not sent directly to the browser, but is stored in the output buffer.
Ob_clean (); Deletes the contents of the internal buffer without
Use PHP's Ob_start ();Control your browser cacheThe output control function gives you the freedom to control the outputs of the data in your script. It is very useful, especially when you want to output a file header after the data has been output.
function | control | browser uses PHP to control user's browser--ob* function
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 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.