I start my script from command line and it outputs things as they happen but a week ago it stopped outputing and now outputs everything when script finishes. I have ob_start() but as I know this does not effect command line output.
Advertisement
Answer
You need to remove ob_start()… try this code on the command line, and it will print the text all at once:
<? ob_start(); echo "testn"; sleep(10); echo "buffern"; ?>