0

Easiest way to store a value in an external file?

I need a number, for a game, that decrements every time a function is called. so that any time that function is ever called, by clicking a link and running code.php, that variable is written and then decremented the next time the link is clicked. help?

2nd Jun 2017, 7:30 AM
Anthony Sharp
Anthony Sharp - avatar
2 odpowiedzi
0
Make a static variable and put the decrement on the constructor of the object/function, this way every time the variable has decrement. U can't put this in a db or a text file
2nd Jun 2017, 7:40 AM
Juliano Ventola
Juliano Ventola - avatar
0
$_POST['You_Value']
26th Jul 2017, 1:31 PM
Eric Rapp
Eric Rapp - avatar