On 27 Aug 2013, at 15:18, Jim Giner <jim.gi...@albanyhandball.com> wrote:

> On 8/27/2013 10:14 AM, Stuart Dallas wrote:
>> It's not really confusing so long as you understand how PHP works. Each 
>> request is brand new - nothing is retained from previous requests. The two 
>> variable you're changing are set by PHP when the request comes in from the 
>> browser. The fact you changed them in a previous request is irrelevant 
>> because 1) that change was not communicated to the browser in any way, and 
>> 2) PHP doesn't retain any data between requests [1].
>> 
>> If you've been coding assuming that changes you make to global variables are 
>> retained between requests you must have been having some pretty frustrating 
>> times!
>> 
>> -Stuart
>> 
> 
> Not really - this is the first time I've had something not work as expected.

That was said with my tongue very much firmly in my cheek, and so is this:

  I've been playing with dynamite since I was 4 - hey, it must be a safe, 
proper thing to do!

Just because nothing has blown up in your face yet doesn't mean it won't, and 
I'm concerned that you might not actually see how important it is to make sure 
you're using the tool correctly.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to