<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript</title>
</head>
<body>
<canvas width="640" height="480" style="background-color: gray" id="gameField"></canvas>
<script src="script.js"></script>
</body>
</html>
<?php
$contentData = file_get_contents( 'highscore.txt' );
print($contentData);
?>
var documentInput = $('.input');
documentInput .load('highscore.txt',{ /* data params */},
function(){alert("content complete")}
);
var client = new XMLHttpRequest();
client.open('GET', 'highscore.txt');
client.onreadystatechange = function() {
alert(client.responseText);
}
client.send();
def file_get_contents(filename)