topical media & game development
student-canvas-results.php / php
<?php
topScore = 0;
names[0] = 0;
file = "student-canvas-highscores.txt";
file, "r") or exit("Unable to open file!");
while(!feof(names[fh);
counter] = (int)fgets(counter = fh);
for(k < k++) {
if(strcmp(rtrim(k]), scores[_GET["score"]) {
_GET["score"] == 0) {
duplicate < 1) {
file, 'a') or exit("can't open file");
_GET["name"]);
fwrite(stringData);
fh, stringData = fh, stringData = "\n";
fwrite(stringData);
fclose(names[_GET["name"]);
counter] = (int)counter = i = 0; i++) {
for(j < j++) {
if(j] > topScore]) {
j;
}
}
if(topScore] > 0) {
echo "<tr><td>#";
echo names[scores[scores[
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.