I don't want to create a table in a database just for this one variable so would like to know how i can write it to a text document
Here is the code in index.php that creates an thermometer image. The bit that needs to be changed is the current.
<img src="/includes/thermometer/thermo.php?current=10000&max=15000" hspace="55">
I thought saving the current variable to a text file would work unless there is a way of updating the variable within index.php
Has anyone got any ideas how I could do this?