<?php

session_start
();
print 
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";
?>

<html><head><title>Videogame Quizz</title>
<link rel="stylesheet" type="text/css" href="style.css" title="" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head><body>


<h1>Videogame Quizz</h1>

<a href="index.php">Back to quizz...</a>
<h2>Highscores</h2>

<table>
<tr><td>Name</td><td>Score</td><td>Date</td></tr>
<?php
    $c 
"";
    
$f fopen("scores","r");
    while (!
feof($f)) {
    
$c .= fread($f500);
    }
    
fclose($f);

    
$p explode("\n"$c);
 
    for(
$i 0$i count($p); $i++) {
    
    
$m explode(";"$p[$i]);
    print 
"<tr><td>".$m[0]."</td><td>".$m[1]."</td><td>".$m[2]."</td></tr>\n";
    }

?>
</table>

</body>
</html>