Ajax Push / Comet with PHP
November 20, 2009 at 11:06 am
No comments
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();
}
Comments
Leave a comment Trackback