<?php error_reporting(0); if ((isset($_REQUEST['action'])) and ($_REQUEST['action'] === 'title')) { echo file_get_contents("http://divl.s07.radio-tochka.com/online.php"); } else { echo'<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script> function getTitle(){ $.getJSON("?action=title", function(data){ $("#title").html(data[4][0].title ); }); setTimeout("getTitle()", 10000); } getTitle(); </script> </head> <body> <div id="title"></div> </body> </html>'; } ?>
<?php error_reporting(0); echo file_get_contents("http://divl.s07.radio-tochka.com/online.php"); ?>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script> function getTitle(){ $.getJSON("title.php", function(data){ $("#title").html(data[4][0].title ); }); setTimeout("getTitle()", 10000); } getTitle(); </script>
<div id="title"></div>