Re: variable shared by users



> Is there anyway to share a variable between many web users ?
>
> I've got an array, updated by users's actions.
> i do want this same array be available to all web users in their sessions.
>
> This without putting the content of the array in DB or file.

What you want is a global site variable. I don't think PHP can do
that...

That would make it easy to create counters of various types, shout
boxes, and a lot of other things, but without the overhead of the db,
or file...

I guess the DB is your choice for now.

-- Evanescent Lurker --

.



Relevant Pages

  • Re: Framework 2.0 array redim unsatisfactory performance
    ... > No, Listis backed by a simple array, it's not a linked list. ... > There's no per-item overhead, not sure how your tests could indicate ... Tomasz ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: variable shared by users
    ... > i do want this same array be available to all web users in their sessions. ... :) Configure a small RAM disk or a HEAP table in MySQL ...
    (comp.lang.php)
  • Re: variable shared by users
    ... >i do want this same array be available to all web users in their sessions. ... This is generally what a database is used for. ... Prev by Date: ...
    (comp.lang.php)
  • Re: variable shared by users
    ... otiteca wrote: ... > I've got an array, ... > i do want this same array be available to all web users in their ... Prev by Date: ...
    (comp.lang.php)
  • variable shared by users
    ... I've got an array, updated by users's actions. ... i do want this same array be available to all web users in their sessions. ... I can not use shmop or sysvsem ... Prev by Date: ...
    (comp.lang.php)