Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is using output buffering considered a bad practice? [closed]

Are ob_start / ob_get_clean() considered bad practice by php programmers in general?

Are there any disadvantages of output buffering?

like image 740
Alex Avatar asked Jan 19 '11 03:01

Alex


People also ask

What is output buffer?

Output Buffering is a method to tell the PHP engine to hold the output data before sending it to the browser.

What is output buffering in PHP INI?

Output buffering is a mechanism for controlling how much output data (excluding headers and cookies) PHP should keep internally before pushing that data to the client. If your application's output exceeds this setting, PHP will send that data in chunks of roughly the size you specify.

What is output buffering Python?

Summary: Python output buffering is the process of storing the output of your code in buffer memory. Once the buffer is full, the output gets displayed on the standard output screen.


1 Answers

It's actually a good practice. Speed up data transfer

like image 149
kos Avatar answered Oct 11 '22 05:10

kos