Code has been added to clipboard!

HTML5 Server-Sent Side Code

Example
<?php
header('Content-Type: text/event-stream');
header('Cache-Control: no-cache');

$time = date('r');
echo "data: The server time is: {$time}\n\n";
flush();
?>