PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I read some tutorials on variable in PHP, but none seem to talk about shared variable, variable that is shared among all clients....which is similar to the static variable found in JSP, where this variable is shared by all user.
No i dont want to use database, just wanna some way to create variable to hold some data to be shared by all users.
For example, I have a variable in php script:
$car=5;
$car++;
print($car);
If a user access this script, he will see the no.6 printed out. The next user access this script will see no. 7 and so on!!!!
I wouldnt know how to retreive a variable from something else then a database or a file (..if its supposed to be passed on to other users).
Maybe someone else knowes?