I'm using JQuery in a PHP file to load the files of another content called 'live.php' which displays time(), but it doesn't load live. Why is this happening? It used to work.
MAIN.PHP
echo "<div id='x'></div>";
echo '<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">';
echo '$(document).ready(function() {
$("#x").load("live.php");
});';
echo '</script>';
LIVE.PHP
<?php echo time();