java - How to output command not finished in php? -
i compiled c file (name.c) , named name.o. output :
hello michael hello marie hello michael hello george hello marie hello man hello michael ... i want output these in php, made , works great :
<?php while (@ ob_end_flush()); // end output buffers if $proc = popen("./name.o", 'r'); echo '<pre>'; while (!feof($proc)) { $a = fread($proc, 1);; echo "$a"; @ flush(); } echo '</pre>'; ?> the problem is long 1 line "hello nameoftheperson" , not every new line.
i excepted output :
hello michael after second or less :
hello marie so don't want show previous line.
how can ? have in java ? (i never code in java if have ...)
Comments
Post a Comment