请问ob_start("ob_gzhandler")和ob_start()的区别以及用法

flyweb 2004-01-27 10:20:19
请问ob_start("ob_gzhandler")和ob_start()的区别以及用法
...全文
76 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ccterran 2004-01-27
  • 打赏
  • 举报
回复
手册里都有的啊
bool ob_start ( [callback output_callback])

This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer
An optional output_callback function may be specified. This function takes a string as a parameter and should return a string. The function will be called when ob_end_flush() is called, or when the output buffer is flushed to the browser at the end of the request. When output_callback is called, it will receive the contents of the output buffer as its parameter and is expected to return a new output buffer as a result, which will be sent to the browser. If the output_callback is not a callable function, this function will return FALSE.

而这个ob_gzhandler就是
ob_start callback function to gzip output buffer

具体用法查手册吧
flyweb 2004-01-27
  • 打赏
  • 举报
回复
可是我E文很差啊,有中文资料吗?

21,881

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧