Jump to content

Variables leak between php applications ?


Gnat666

Recommended Posts

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 ;)

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.