0
It’s my first post here on the site. I have a problem that I don’t know how to fix. I don’t know if it’s a limitation of my server...
I would like this code below to return a number after another in the interval of a second, but in my server the page is empty and when it finishes everything comes at once. On the other server works as I want.
echo 'Begin ...<br />';
for( $i = 0 ; $i < 10 ; $i++ )
{
echo $i . '<br />';
flush();
ob_flush();
sleep(1);
}
echo 'End ...<br />';
I recorded a video explaining the problem.
On this server works as I wanted it to be: http://ronaldoguedes.com.br/p3.php
That’s what I need doesn’t work: https://wistats.com.br/main/p3.php
Use NGINX on an instance of the LINODE server with 1GB RAM and 1 core. Is that it? Server limitation?
Try it this way: https://answall.com/a/270638/99718
– Valdeir Psr