summaryrefslogtreecommitdiffstats
path: root/examples/declarative/demos/samegame/qml/samegame/highscores/scores.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/demos/samegame/qml/samegame/highscores/scores.php')
-rw-r--r--examples/declarative/demos/samegame/qml/samegame/highscores/scores.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/demos/samegame/qml/samegame/highscores/scores.php b/examples/declarative/demos/samegame/qml/samegame/highscores/scores.php
index 3cceb2d7..ffb0dd5d 100644
--- a/examples/declarative/demos/samegame/qml/samegame/highscores/scores.php
+++ b/examples/declarative/demos/samegame/qml/samegame/highscores/scores.php
@@ -11,8 +11,8 @@
//if($grid != "10x10"){
//Need a standard, so as to reject others?
//}
- $file = fopen("score_data.xml", "a"); #It's XML. Happy?
- $ret = fwrite($file, "<record><score>". $score . "</score><name>"
+ $file = fopen("score_data.xml", "a"); #It's XML. Happy?
+ $ret = fwrite($file, "<record><score>". $score . "</score><name>"
. $name . "</name><gridSize>" . $grid . "</gridSize><seconds>"
. $time . "</seconds></record>\n");
echo "Your score has been recorded. Thanks for playing!";
@@ -21,7 +21,7 @@
}else{#Read high score list
#Now uses XSLT to display. So just print the file. With XML cruft added.
#Note that firefox at least won't apply the XSLT on a php file. So redirecting
- $file = fopen("scores.xml", "w");
+ $file = fopen("scores.xml", "w");
$ret = fwrite($file, '<?xml version="1.0" encoding="ISO-8859-1"?>' . "\n"
. '<?xml-stylesheet type="text/xsl" href="score_style.xsl"?>' . "\n"
. "<records>\n" . file_get_contents("score_data.xml") . "</records>\n");