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!
My problem is:
- I'd like to create a global variable (in PHP of course) to store the value of a submitted field so that (the global variable) is available to any other users from other clients acess to my site. Its something like "application variable" in ASP, but I wonder how to do it in PHP.
Thank Takuma. But I think in some cases the global variable is more convenient especially when the input data to store is simple, not so much & the next time to load the PHP site (I mean after all users close their browsers ) I dont want to recover the data of the previous load for users to use.
Sounds like you need to define a Constant, or if it has to be a variable (someone can change the value later), just add it to an include file that will be called in each page.