trying to add some values together, I have script that will mkdir and file in dir named points, and in points is the file, points.htm... In points.htm is blank, until the user beats a challenge, I suppose I could setup a variable with the given point value for that mission, but I can't get it to add to the points.htm...
I tried:
Code: Select all
$var = "10";
$sp = fopen("points.htm", "w");
$add = readfile($sp);
fwrite($sp, $var + $add);
fclose($sp);