PHP output buffer flush and then clean -



PHP output buffer flush and then clean -

i trying this:

display "a" 1 second, clear screen display "b" 1 second, clear screen display "c".

this have far, buts it's not working:

header("content-type: text/html; charset=utf-8"); header("cache-control: no-cache, must-revalidate"); header("pragma: no-cache"); set_time_limit(0); ob_implicit_flush(1); echo "a"; ob_flush(); ob_clean(); sleep(1); echo "b"; ob_flush(); ob_clean(); sleep(1); echo "c";

output buffer doesn't work way, it's 1 way street. has been passed browser has been sent server , don't have access anymore info , don't have command on info user has received.

the way send command characters clear screen, don't fall characters browsers accept.

in theory send \x08 (backspace), not work on else allows using these ascii command characters. working terminal or graphical browser? first 1 might accept, latter unlikely ever would.

php

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -