dongzong5017
2013-05-09 12:49
浏览 49
已采纳

PHP Echo Order行为

I have a PHP script that requires the Yahoo SDK. When I include the following I get no echo output until the script completes:

require("/root/yahoosdk/ysdk/examples/common.inc.php");

I can comment that line and I see all echo's occurring for each iteration as and when they should.

Everything works ok however the output must be getting held in RAM until the script is complete, im iterating thousands of posts so this could become problemtic.

Driving me nuts! Any help is appreciated!

Sam

图片转代码服务由CSDN问答提供 功能建议

我有一个需要Yahoo SDK的PHP脚本。 当我包含以下内容时,在脚本完成之前我没有得到回显输出:

require(“/ root / yahoosdk / ysdk / examples / common.inc.php”);

我可以对该行进行评论,并且我会看到每次迭代都会发生所有回声。当它们应该发生时。

一切正常但输出必须保存在RAM中 直到脚本完成,我会迭代成千上万的帖子,所以这可能会成为问题。

让我疯了! 任何帮助表示赞赏!

Sam

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doushenken2833 2013-05-09 12:55
    已采纳

    Look at the code in /root/yahoosdk/ysdk/examples/common.inc.php

    Make sure it is not enabling output buffering whiuch would prevent any output until script completion.

    See ob_start

    点赞 评论

相关推荐 更多相似问题