Well, kind of. And well, I just replied to thank you. THANKS for your help.
Since I am new at php, but not new about coding, I interpreted the base code I got from http://www.glenrhodes.com/tutorials/hiscore.html
I just use now this code:
<?php
// Create a Blank File if it doesn't already exist
if (!file_exists($filename))
{
$file=fopen($filename, "w");
fclose ($file);
}
// Insert a score/name
if ($action == "INSERT")
{
$Score = $winscore;
$Name = $winname;
$file=fopen($filename, "w");
// Write them out
{
fputs($file, "Score=");
fputs($file, $Score);
fputs($file, "&");
fputs($file, "Name=");
fputs($file, $Name);
}
fclose($file);
}
// Process the OUTPUT options
// FLASH DATA CREATED HERE
if ($viewtype == "FLASH")
{
{
echo ("NAME" . "=");
echo ($Name);
echo ("&SCORE" . "=");
echo ($Score);
echo ("what is wrong?");
}
}
?>
With it, I write the variables I need flash to read. I create a txt with the following:
NAME=Value&Score=Value
And THIS can be read perfectly by flash.
And well, since I have noticed that I am going to need maybe LOTS of txt, I decided to experiment, and I think it will work perfectly, with the base code I mentioned above (from hiscore.html
) to create a database of 1000. I think that is very easy.
Now, if by any chance you look at that code, and you know how to detect if there are 1000 entries, not to overwrite any, but then create a NEW document, with another possible 1000 entries.
Well, be well, and good luck.