我已经试过这是我以前的问题的答案,但它不工作,它只是报告500内部服务器错误和萤火不会报告任何错误的详细信息:请求通过Ajax
(function worker() {
$.ajax({
url: 'buildmarkers.inc.php',
type: 'POST',
success: function(data) {
$('.result').html(data);
},
complete: function() {
// Schedule the next request when the current one's complete
setTimeout(worker, 30000);
}
});
})();
当我尝试这样它是工作:
<?php include('buildmarkers.inc.php')?>
错误日志将提供一个巨大的线索。 –
你可以添加你的php代码吗? – user3284463