Ajax Push / Comet with PHP
Yes, it is possible.
There are many ways to implement Ajax push with PHP. In this case, we will study a way to do so, by using javascript with PHP forcing the page flush, from server side.
First of all, we must understand the ajax… Ajax asks the server for something
function forceFlush()
{
ob_start();
ob_end_clean();
flush();
set_error_handler('_MINDNeutralizeError');
ob_end_flush();
restore_error_handler();
}
