выдаете изображение средствами фреймворка
...
<img src="/img/icons/Twitter_Logo_Blue.svg" alt="logo">
...
...
$klein = new \Klein\Klein();
$klein->respond("GET",'/',function () {
global $USER_INFO;
include __DIR__."/pages/main.php";
return;
});
...
$klein->dispatch();
$nd = $vk->stats ()->get($token,[
"group_id"=>"00000",
"interval"=>"week",
"intervals_count" => 1, // Нужно явно указать
"timestamp_from" => strtotime ($date),
// "timestamp_to" => strtotime ($now),
"stats_groups" => "visitors",
"extended" => false
]);
<!doctype html>
<html>
<head>
<title>Socket.IO chat</title>
<script src="//domain.ru/socket.io/socket.io.js"></script>
<script src="https://code.jquery.com/jquery-1.11.1.js"></script>
<script>
$(function () {
var socket = io.connect('domain.ru:2096', {rejectUnauthorized: false, secure: true});
$('form').submit(function (e) {
e.preventDefault(); // prevents page reloading
socket.emit('chat message', $('#m').val());
$('#m').val('');
return false;
});
socket.on('chat message', function (msg) {
$('#messages').append($('<li>').text(msg));
});
socket.on('connect', () => {
console.log(socket.id);
});
});
</script>
</head>
<body>
<ul id="messages"></ul>
<form action="">
<input id="m" autocomplete="off"/>
<button>Send</button>
</form>
</body>
</html>