Gnat666 Posted March 1, 2008 Share Posted March 1, 2008 Hi all My first post, and I did try searching, but maybe because its a "broad" question/topic I didnt get a result. OK, first off, not experienced PHP'er, but know enough to be dangerous. Situation; 1 MS Server on a secure internal network running a bunch of little flat file database applications I made with PHP There are only 40-50 users, and times of use would be varied. Possible problem; Each application I've made/making tends to be a copy&chop of the last ..... and a thought just hit me. If I'm using common variables like $Drop1 and $A1 and so on in each (multi-form) application, will this potential cause a bad situation if User1 was using Application1 at the same time User2 was using Application2? i.e. potential for say $Drop1 from Appication1 to be leaked into Apllication2 Do I HAVE TO use different variable names for each php application or is the server/php inteligent enough to separate the Users? Each application is in its own folder on the server, but I suspect that means nothing for "separation". I set the server up ages ago and I think I switched Globals on, probably because of my programming skills, I needed it Quote Link to comment Share on other sites More sharing options...
Guest Posted March 1, 2008 Share Posted March 1, 2008 Heya, no, variables do not "cross over" like you might be implying. Each time the script is executed they run independently of each other, the only "common ground" would be things retrieved from persistent storage, like databases or files. Quote Link to comment Share on other sites More sharing options...
Gnat666 Posted March 13, 2008 Author Share Posted March 13, 2008 ok, Thx 8ball ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.