Updates to agc scripts for PHP8
git-svn-id: svn://192.168.202.10@3971 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -3,7 +3,11 @@ header('Content-Type: text/event-stream');
|
||||
header('Cache-Control: no-cache');
|
||||
|
||||
$time = date('r');
|
||||
|
||||
$refresh_interval=(array_key_exists('refresh_interval', $_GET) ? $_GET['refresh_interval'] : "-1");
|
||||
|
||||
// If the connection closes, retry in 1 second
|
||||
echo "retry: {$_GET['refresh_interval']}\n";
|
||||
echo "retry: {$refresh_interval}\n";
|
||||
echo "data: The server time is: {$time}\n\n";
|
||||
flush();
|
||||
flush();
|
||||
?>
|
||||
Reference in New Issue
Block a user