I have a jQuery ajax function which queries a php file (carousel.php) and does some stuff with the result. This all works fine on our development server, but on our live server the script seems to fail and returns the content of the PHP file (the raw code). So the PHP isn't even executed. What could be the case here?
$.ajax({
url: 'carousel.php',
dataType: 'json',
cache: false,
success: function(result){
if(result.success){
if (result.numRows == 0) {
$('#insert').css('display','none');
}
$('#selectBox').html(result.html);
}
}
})