Sorry to take up your precious time with such a trivial matter, but could someone let me know how to (if it's possible) increment a variable in a text file.
Say if visitors.txt had "visitors=2 3" in it, how would I increment this from a php script? The only solution to this as far as I can see with my 5 days of php experience would be to re-write the file using fopen(). It seems to me there should be an easier way.
Many thanks to anyone who replies.
Say if visitors.txt had "visitors=2 3" in it, how would I increment this from a php script? The only solution to this as far as I can see with my 5 days of php experience would be to re-write the file using fopen(). It seems to me there should be an easier way.
Many thanks to anyone who replies.
Comment