Shandrio
February 17th, 2005, 11:14 AM
Hi Gurus!
I have this very big doubt... I have a PHP script I've made that generates an HTML page "slowly" because I use sockets in the script, which take time to connect and transfer, I have to wait quite much until my whole page is generated until I can finally see it. Is there a way to see it "by parts" as it's beeing generate and not only the final entire page at once?
Here's a pseudocode to show what I mean, in case it's not well understood:
HTML head tags
other HTML stuff
do
PHP script that uses time-consuming sockets
PHP script that shows some output
loop
HTML tail tags
Well, simply what I want is to SEE the output of the code marked in red, every time it executes...... But how?
Thanks in advanced!
I have this very big doubt... I have a PHP script I've made that generates an HTML page "slowly" because I use sockets in the script, which take time to connect and transfer, I have to wait quite much until my whole page is generated until I can finally see it. Is there a way to see it "by parts" as it's beeing generate and not only the final entire page at once?
Here's a pseudocode to show what I mean, in case it's not well understood:
HTML head tags
other HTML stuff
do
PHP script that uses time-consuming sockets
PHP script that shows some output
loop
HTML tail tags
Well, simply what I want is to SEE the output of the code marked in red, every time it executes...... But how?
Thanks in advanced!