Are application wide variables possible with PHP4?

From: Date: Thu, 02 Mar 2000 10:34:39 +0000
Subject: Are application wide variables possible with PHP4?
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-11322@lists.php.net to get a copy of this message
Hello, My question came up with the current running thread 'Sessions with Shared memory(mm) broken?'. Andreas Karajannis and Luis Gallego write that they are trying to use "shared memory" to save session variables. What does that mean? I would like to have a possibility in saving variables that persist through the whole runtime of the server, like it can be done in ColdFusion. Everyone I asked before just said "no, it´s not possible, you have to save them in files or in a database and initialize them everytime a script is called". Does anyone know better? Marc. Luis Gallego wrote: > I have a similar problem, i use phplib-7.2 saving the session > information in shared memory. > > With php-4.0b3 all works fine, but php-4.0b4pl1 don´t save the > registered POST variables, always are empty, by other side > non-registered POST variables works well. > > My php configure (in both: php-4.0b3 and php-4.0b4pl1) line is: > > ./configure --with-informix > --with-apache=../apache_1.3.11 > --enable-track-vars > --with-config-file-path=/etc > --with-pdflib=/usr/local > --with-tiff-dir=/usr > --with-jpeg-dir=/usr > --with-zlib-dir=/usr > --with-zlib > --disable-debug > --enable-sysvsem > --enable-sysvshm > --enable-inline-optimization > -without-gd > > Somebody knows a solution?. > > Thank you. > > Andreas Karajannis wrote: > > > It seems that saving Sessions to shared memory doesn't work. > > If I try to enable the mm handler, the session module complains about > > not being able to initialize and the corresponding apache process core > > dumps. > > This is with the latest PHP4 CVS on Solaris 7. > > File based sessions work fine. > > > > Another sidenote: During compilation SUN's cc chokes on > > #define ps_mm_debug(a...) > > mod_mm.c, line 60 > > Had to remove "a..." to get it to compile. > > > > -Andreas > > > > -- > > PHP 4.0 Beta Mailing List > > <http://www.php.net/version4/> > > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > > For additional commands, e-mail: php4beta-help@lists.php.net > > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net

« previous php.version4 (#11322) next »