Re: Are application wide variables possible with PHP4?

From: Date: Fri, 03 Mar 2000 08:21:38 +0000
Subject: Re: Are application wide variables possible with PHP4?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11432@lists.php.net to get a copy of this message
Marc Aßmann wrote: > Is this working for all operating systems or is this working only for > some Unix platforms? AFAIK yes. Maybe there exists some compatibility library for win32. > The headers in the C - sources of these modules contain a warning that > this has only been > tested for Solaris 2.6. > It should work on all Plattforms that support System V Shared Memory. > Does someone know more about chances and limitations of these modules > for implementing > application wide variables with it? eg. Could there be a problem that > two scripts try to write > the same block of memory and a third is trying to read that garbadge??? > That's why you need sysvsem, that provides Semaphores. Please look in the appropriate sections of the manual for a description. IMHO, if you can use shared memory/semaphores on your platform, this would be the way to implement application wide variables. -Andreas -- Andreas Karajannis GMD National Research Center for Information Technology Schloss Birlinghoven, D-53754 Sankt Augustin Phone +49 2241 142948

« previous php.version4 (#11432) next »