Search code examples
phpechoyahoo-api

PHP Echo Order Behaviour


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


Solution

  • 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