function Add_Write($FileName,$Str)
{
$f=fopen($FileName,"a");
flock($f,LOCK_EX);
fputs($f,$Str);
fclose($f);
}
$Str = $_GET['username'];
$Str .= $_GET['score'];
Add_Write("test.txt",$Str);
{
$f=fopen($FileName,"a");
flock($f,LOCK_EX);
fputs($f,$Str);
fclose($f);
}
$Str = $_GET['username'];
$Str .= $_GET['score'];
Add_Write("test.txt",$Str);
my $Str = $_GET['username'];
$Str .= "=".$_GET['score'];
$Str .= "\n";
AddToFile("test.txt",$Str);function AddToFile($FileName,$Str)
{
$f=fopen($FileName,"a");
flock($f,LOCK_EX);
fputs($f,$Str);
fclose($f);
}?>