关于ob_函数的问题?

netstu 2004-03-29 10:26:35
如果用ob_start和ob_get_contents得到缓冲内容以后,然后写入到文件。有时会在WINNT里面产生phpxxx.tmp文件。有时没有,我在服务器上运行的时候会生成,但是在本机上运行,却没有。请问谁知道怎么回事,谢谢。
...全文
103 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
52juanjuan 2004-03-29
  • 打赏
  • 举报
回复
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.


string ob_get_contents ( void )


This will return the contents of the output buffer or FALSE, if output buffering isn't active.
netstu 2004-03-29
  • 打赏
  • 举报
回复
我这个我用editplus打开看过,不是upload产生的,而是我上面所说的生成的。

而且我在后面用了ob_end_clean了,可是不行。但是在本地却好
xuzuning 2004-03-29
  • 打赏
  • 举报
回复
phpxxx.tmp文件有upload产生

21,886

社区成员

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

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