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
https://forums.phpfreaks.com/topic/93826-variables-leak-between-php-applications/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.