probably a really stupid variable question....

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!

Moderator: General Moderators

Post Reply
spaceace
Forum Newbie
Posts: 2
Joined: Sun Mar 26, 2006 12:13 pm

probably a really stupid variable question....

Post by spaceace »

Hi,

Can anyone tell me if a web based PHP script is accessed by more than 1 person, are the variable values unique to the individual user accessing them or do other users inherit the new values (if that makes sense) ?

The reason I ask is; I've written a web based app where users log in and it performs calculations for them that is producing some unexpected results and I cant replicate the problem as it preforms perfectly for me (the first user logged on).

TIA
Jay
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

unless you're using shared memory resources/techniques, the requests (and variables) are independant of each other.
spaceace
Forum Newbie
Posts: 2
Joined: Sun Mar 26, 2006 12:13 pm

Post by spaceace »

Hey, thanks for the quick reply.

So for each user, the scripts variables are unique to the user....cool, that narrows things down somewhat.

AFAIK I'm not using any advanced techniques (fairly new to PHP) and my server is a vanilla v5 install.

Thanks for your help.
Jay
Post Reply