RE: [PHP] Global persistent variables

2004-08-12 Thread Lance Lovette
If you have the ability to compile extensions into PHP and you're not running under Windows you may find useful an extension I wrote that is one solution to this problem (and more). http://pwee.sourceforge.net/ Note that I haven't yet compiled it under anything later than PHP 4.2.1. Lance

Re: [PHP] Global persistent variables

2004-08-10 Thread Jean-Yves
Thanks to everybody for the answers. I'll store the data somewhere (probably in a file). Kind regards, Jean-Yves - In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Davidson) wrote: > Im reading up a little on it, from the msdn site, "make your ASP pages > stateless if possible, rel

Re: [PHP] Global persistent variables

2004-08-10 Thread John Holmes
Jason Davidson wrote: 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

RE: [PHP] Global persistent variables

2004-08-10 Thread Jason Davidson
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() equivile

Re: [PHP] Global persistent variables

2004-08-10 Thread John Holmes
Jean-Yves Jourdain wrote: Is there a way to have global persistent variable with PHP? I would like to reproduce the use of the ASP possibility. The variable "name" will be available to every users... No. If the values are read-only, you can use an .ini file and parse_ini_file(). If they are rea

Re: [PHP] Global persistent variables

2004-08-10 Thread Tom Rogers
Hi, Wednesday, August 11, 2004, 1:36:45 AM, you wrote: JYJ> Hi, JYJ> Is there a way to have global persistent variable with PHP? I would like JYJ> to reproduce the use of the ASP JYJ> possibility. The variable "name" will be available to every users... JYJ> Thank-you in advance, JYJ> Kind reg

RE: [PHP] Global persistent variables

2004-08-10 Thread Jay Blanchard
[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,

RE: [PHP] Global persistent variables

2004-08-10 Thread Jason Davidson
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

RE: [PHP] Global persistent variables

2004-08-10 Thread Jay Blanchard
[snip] s there a way to have global persistent variable with PHP? I would like to reproduce the use of the ASP possibility. The variable "name" will be available to every users... [/snip] One other thing I should have mentioned...neither ASP or PHP is 'persistent', they are both stateless. We i

Re: [PHP] Global persistent variables

2004-08-10 Thread Robby Russell
On Tue, 2004-08-10 at 08:36, Jean-Yves Jourdain wrote: > Hi, > > Is there a way to have global persistent variable with PHP? I would like > to reproduce the use of the ASP > possibility. The variable "name" will be available to every users... > > Thank-you in advance, > > Kind regards. > > J

Re: [PHP] Global persistent variables

2004-08-10 Thread Jason Davidson
Not like asp's application("") there isnt. You can use phps $_SESSION var, which is similar to asps Session(). I dont think php runs the same asp, in order for asp's application vars to work, you would think that asp must be running in some state continuously, and i dont think php does that. I

RE: [PHP] Global persistent variables

2004-08-10 Thread Jay Blanchard
[snip] Is there a way to have global persistent variable with PHP? I would like to reproduce the use of the ASP possibility. The variable "name" will be available to every users... [/snip] http://us2.php.net/manual/en/language.variables.scope.php -- PHP General Mailing List (http://www.php.net