PHP – Flushing While Loop Data with Ajax
You’re confused as to how PHP and AJAX interact. When you request the PHP page via AJAX, you force the PHP script to begin execution. Although you might be using flush() to clear any internal PHP buffers, the AJAX call won’t terminate (i.e., the response handlers won’t be called) until the connection is closed, which … Read more