Hello everybody!
I've been trying to use the PHP flush function to just send certain HTML to the browser before the whole page loads. But it doesn't work when I test it using a sleep function, it always just sleeps and then sends everything.
I seem to have tried a lot of things and tested it on multiple browsers such as Firefox. I turned off Output_buffering in my php.ini. And I tried to turn off mod_gzip in an .htaccess file but I don't know if I did it right.
I just want this code to work:
<body>
This page is loading.<BR />
<?php flush(); sleep(2); ?>
Almost there...<BR />
<?php flush(); sleep(2); ?>
Done.<BR />
</body>
Start Free Trial