I have a very simple web synchronization PHP I want to build which basically returns a unique number between 0-20 every time it is loaded. simple, right?
Well in order to do this, I need to store the last number that was sent.
I know of two ways to do this, one being storing the number in a file on the server and going through having to rewrite, write, etc over and over again, or, even worse, using MySQL to store one integer in one row in a one column table…. both seem overcomplicated to me.
So this takes me to a question, is there a way to store a simple integer without using MySQL or the file system?
P.S. I seem to have forgotten to mention this, but I need to store the information across all clients, not just per-client. Anything relating to cookies will not work
I haven’t personally used this but it seems that this could be an alternative solution as well: APC Functions