Here, I am trying to modify a variable that I get from using the GET function. Is it possible to do arithmetic on a variable in PHP?
$gz=$_GET[$gs];
$gy=&gz / 905.76 + 416.79;
$row_add = $_GET[$gn]."[)><(]".$gz."\n";
$file = fopen("scores.txt","a+");
fwrite($file,$row_add);
fclose($file);
header("location: highscore.php");
There I am adding a row into a text file, but the problem I get is this:
Parse error: syntax error, unexpected '/', expecting T_PAAMAYIM_NEKUDOTAYIM or '(' in /home/www/geou.awardspace.com/highscore.php on line 44
Line 44 is the second line there in the code (I did not include the rest as it was not problematic).
Thank you very much for any help.