setInterval(function() {
    $.ajax({
        url: 'x.php',
        type: 'GET',
        dataType: 'text',
        success: function(response) {
            console.log(response);
        },
        error: function(jqXHR, status, error) {
            console.log('AJAX hatası:' + error);
        }
    });
}, 10000);

Bu kod işinizi görecektir.