PHP Output Buffering

白昼怎懂夜的黑 提交于 2019-12-05 03:03:04
Diablo

Use ob_start() and ob_end_flush().

ob_start() at the start of the script before any output (not even an empty space).

When u want to output use ob_end_flush().

user509006

Check your PHP.ini file and ensure the Output Buffer is enabled.

After that, you can use ob_start() whenever you want to begin buffering and ob_flush() to flush the buffer whenever you want to stop buffering.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!