Re: Global persistent variables

From: Date: Tue, 10 Aug 2004 16:53:06 +0000
Subject: Re: Global persistent variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-193320@lists.php.net to get a copy of this message
Thanks to everybody for the answers. I'll store the data somewhere (probably in a file). Kind regards, Jean-Yves ----- In article <28357.1092155033@zworg.com>, jdavidson@zworg.com (Jason Davidson) wrote: > Im reading up a little on it, from the msdn site, "make your ASP pages > stateless if possible, relying on Session or Application variables for > transient state only" Interesting, but not conculsive. ASP sucks > anyways.. > Bottom line, PHP is definately stateless, and there is no Application() > equivilent in php. > > Cheers > Jason > > "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote: > > > > [snip] > > Im not so sure asp is completely stateless is it. The application var > > will hold a var as long as the server is running, for any visitor. The > > var doesnt need to be set each page load either.. > > eg. Application("counter").. you can add to the counter on any page, by > > any visitor, at any time, and it will maintain that var untill your > > restart your server. This suggests some sort of state doesnt ot?? > > [/snip] > > > > It depends on how you define "state". The ASP book that I have here says > > that it is stateless. The value of a variable may be set and "held" for > > each user, but there is no persistent connection to the variable. This > > action is pretty much like sessions in PHP > >

« previous php.general (#193320) next »