Re: Program flow?

From: Date: Mon, 07 Mar 2005 15:19:43 +0000
Subject: Re: Program flow?
References: 1  Groups: php.general.bg 
Request: Send a blank email to general-bg+get-240@lists.php.net to get a copy of this message
Hi, The answer of your question is "Yes". Ordinary variables are reset when the script starts. However, you could use sessions or cookies, or some memory share, or even a data base in order to achieve some persistency of the variables. Checkout the Sessions chapter in the manual - http://www.php.net/manual/en/ref.session.php Kouber "Rory Walsh" <rorywalsh@ear.ie> wrote in message news:20050301150435.87558.qmail@lists.php.net... > Hi I have a one simple question that I need to sort out before I > continue writing any PHP scripts. Every time I call a script are the > variables reset to the default values? If for example I call action.php > from a form with a hidden value "test", I set $NUMBER to 5. If I then > call action.php again from another form with another hidden value which > means that I do not assign any number to $NUMBER, will $NUMBER now go > back to being its default value or will it stay at 5? So basically I > think my question is, each time one runs a script is it the same as > starting the application all over again? Cheers, > Rory.

« previous php.general.bg (#240) next »