Hi Jawelin,
Quote:
Originally posted by Jawelin
Thanks the same.
A general question: if I define a numeric variable in global.php, it should become a global (visible by all phps) one. For instance, Well. If I increment it in a certain script, shall it result increased also from all the other scripts ?
So, the same user should 'see' $myvar=1 ... Shouldn't it?
And, for other users ? How will that var be valued ?
|
everytime a PHP script is run by a user, it runs with default variable values. So if you change a variable value inside a script, change will apply only to user who triggered the script, not to other users running the same script.
If you want to keep its new value, you have to save it somewhere (file, MYSQL etc.)
Regards,
Logician