Practical PHP Programming:Output buffering
From IpbWiki
Output Buffering was introduced in PHP 4, so is not new in PHP by a long shot, and yet it still has yet to catch on amongst the masses despite the added flexibility it brings.
Without output buffering, PHP sends data to your web server as soon as it is ready – this might be line by line or code block by code block. Not only is this slow because of the need to send lots of little bits of data, but it also means you are restricted in the order you can send data. Output buffering cures these ills by enabling you to store up your output and send to send it when you are ready to – or to not send it at all, if you so decide.
Topics covered in this chapter are:
- When to use output buffering
- Manipulating multiple buffers
- Incremental data flushing
- Output compression
Chapter contents
- 12.1. Practical_PHP_Programming:Advantages of output buffering
- 12.2. Practical_PHP_Programming:Output buffering performance considerations
- 12.3. Practical_PHP_Programming:Getting started with output buffering
- 12.4. Practical_PHP_Programming:Reusing output buffers
- 12.5. Practical_PHP_Programming:Stacking output buffers
- 12.6. Practical_PHP_Programming:Flushing stacked output buffers
- 12.7. Practical_PHP_Programming:Reading the contents of output buffers
- 12.8. Practical_PHP_Programming:Other output buffer functions
- 12.9. Practical_PHP_Programming:Flushing waiting output
- 12.10. Practical_PHP_Programming:Compressing your output
- 12.11. Practical_PHP_Programming:URL rewriting
Next: Practical_PHP_Programming:Advantages of output buffering
