I have a php script that only produces logs to the client.
When I echo something, I want it to be transferred to client on-the-fly.
(Because while the script is processing, the page is blank)
I had already played around with ob_start()
and ob_flush()
, but they didn't work.
What's the best solution?
PS: it is a little dirty to put a flush at the end of the echo
call...
EDIT: Neither the Answers worked, PHP or Apache Fault?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…