i want to use a data structure in PHP as static for different client calls.
i'll explain this:
lets say i have an array A. Now what i want is that A gets updated for every client side call as static.
If User1 has sent some data i want to store it in A , next time another user User2 sends some data, i want to append it to A and not like a fresh call. So, essentially, i want to make use of a data strucutre that sticks in the server memory and used as global, universal contant for any call from any browser
another explanation to throw light on what i want is this:
lets say i have this piece of code in my server PHP script:
now i want that everytime this script is called my output should be
1 and then 2 and then 3 and so on
and not 1 and 1 and 1 and so on..
PS: I dont want to use a database to implement above issue, I WANT TO USE SERVER MEMORY like say a C++ server... pls pitch in with your comments asap... thx in advance