Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用ob_start('ob_gzhandler')压缩我的脚本。但是脚本需要太多时间来执行。我ob_end_flush()在回调函数中添加了方法,register_shutdown_function()因为我不能ob_end_flush()直接在代码中添加。这是延迟的问题吗?请给我建议以加快我的脚本。谢谢
ob_start('ob_gzhandler')
ob_end_flush()
register_shutdown_function()
建议?好吧......不要使用ob_gzhandler,使用前端功能来压缩输出 - apache,nginx可以做到这一点。
ob_gzhandler