If I have a PHP script that makes two curl calls like so:
- set a variable
- get the value of the variable
What happens if two or more users call that script simultaneously?
Say user one sets the variable to "dog" and user two sets it to "cat". Will the two requests of one user always be executed together or could this happen:
user one: set var to "dog" user two: set var to "cat" user one: receive value "cat" user two: receive value "cat"
And if this is the case, is there any way for me to prevent it from happening? Keep in mind that I do not have direct control over the variable that is being set.