Tuesday 27 November 2018

php - Is using output buffering considered a bad practice?




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



Are there any disadvantages of output buffering?


Answer



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


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...