I am currently trying to call a php-script via this code:
$.ajax({
url: "test.php",
type: "GET",
success: function(data)
{
console.log(data);
},
error: function (xml, error) {
console.log(error);
}});
The .php-File only contains
echo "TEST"
The problem is: All I get displayed in the console is a weird block of question marks...
Well - I spotted the problem (A long time ago, just hadn't the time to post it):
The Code was completely fine. The Problem was, however, that the path was wrong and so I sent the request to a old Test-Script that echoed an entire video...
So, if you have a similar problem: The code from above should work.