stream output of a command continuously run in php

Posted by chandan kharbanda on Stack Overflow See other posts from Stack Overflow or by chandan kharbanda
Published on 2014-05-31T09:22:06Z Indexed on 2014/05/31 9:24 UTC
Read the original article Hit count: 182

Filed under:
|
|
|
|

i am running this simple command

{ ./a.out < in; } &> output.txt
using exec and i want to output what's coming in output.txt through ajax request continuously.
Also i want a way to turn off my output buffering.I tried flush() and ob functions but didn't succedded.In my
/etc/php5/apache2/php.ini  php.ini
value of
output_buffering = 4096
.When I change it to Off and restart my apache2 server it fails to restart.
P.S. I am using lamp server.

© Stack Overflow or respective owner

Related posts about php

Related posts about linux