Here's an update for this post...
I found a way to make PHP send output to the browser bit by bit rather than waiting until the script finishes processing and outputting it all at once. Using a combination of flush() and ob_flush() (trying one of them individually doesn't seem to cut it) causes PHP to completely flush the output buffer without terminating the script.
Initially, when I implemented this idea in a frameset, I ran into a problem. This frameset has two columns, with the second one being split into two rows. The top row of that column is for displaying posts, the bottom half is a form for submitting them. The bottom row script would not process until the top row script terminated. I got around this by having the top row output a META redirect and terminate so that the bottom frame could load.
Now, onto my problem: any form submissions I make in the bottom row aren't processed until (you guessed it) the top row script terminates. Is there any way to get around this, such that the browser (this happens in both IE and Mozilla) will allow form submissions from the bottom row script to process even if the top row script hasn't terminated yet?
I've sifted through code for crafty syntax and WebChat and I'm having a bit of difficulty discerning exactly how they're doing it.
I found a way to make PHP send output to the browser bit by bit rather than waiting until the script finishes processing and outputting it all at once. Using a combination of flush() and ob_flush() (trying one of them individually doesn't seem to cut it) causes PHP to completely flush the output buffer without terminating the script.
Initially, when I implemented this idea in a frameset, I ran into a problem. This frameset has two columns, with the second one being split into two rows. The top row of that column is for displaying posts, the bottom half is a form for submitting them. The bottom row script would not process until the top row script terminated. I got around this by having the top row output a META redirect and terminate so that the bottom frame could load.
Now, onto my problem: any form submissions I make in the bottom row aren't processed until (you guessed it) the top row script terminates. Is there any way to get around this, such that the browser (this happens in both IE and Mozilla) will allow form submissions from the bottom row script to process even if the top row script hasn't terminated yet?
I've sifted through code for crafty syntax and WebChat and I'm having a bit of difficulty discerning exactly how they're doing it.
