1

When I run my PHP script on my local windows machine, I see the output of printf every time it is called.

But running on a remote CentOS 6 machine using php index.php -x does not show any output until it has finished execution. How can I enable printf to write sth to the output stream every time it is called, so I can see what my script is actually doing?

1 Answer 1

1

Just had to use fwrite(STDOUT, "text") instead of printf as noted here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.