Is it possible to declare some kind of super global variable in PHP, which
would be avaliable to all later PHP scripts/processes?
I suppose I could use a database or filesystem. But in this case of mine I
need to store and retrieve some values very fast and consuming as little
resourses as
Sigitas Paulavicius wrote:
Is it possible to declare some kind of super global variable in
PHP, which would be avaliable to all later PHP scripts/processes?
As long as you use one server only (no load-balancing), you can use
shared memory.
http://php.net/shmop
Try phpbuilder.com or google to
this is something I never needed todo, but it works.
?php
// www.miningsurplus.com/counter.php
session_id('0a99a548c57c06306e408cf44b2d5d10');
session_start();
if (!isset($HTTP_SESSION_VARS['counter']))
{
$counter = 0;
session_register('counter');
}
3 matches
Mail list logo