在X秒内刷新PHP变量
这是我的密码 如何在5秒内刷新在X秒内刷新PHP变量,php,jquery,refresh,Php,Jquery,Refresh,这是我的密码 如何在5秒内刷新$test <?php $test = file_get_contents("test.txt"); ?> <html> <body> <?php echo $test; ?> </body> </html> 你试过谷歌吗???是的,但我在谷歌上找不到解决方案第一个链接它的页面本身重新加载正确, setInterval(function(){ $('body').l
$test
<?php
$test = file_get_contents("test.txt");
?>
<html>
<body>
<?php echo $test; ?>
</body>
</html>
你试过谷歌吗???是的,但我在谷歌上找不到解决方案第一个链接它的页面本身重新加载正确,
setInterval(function(){
$('body').load('test.txt');
}, 5000);