Hi all !

It seems I did not state exactly enough what I need ... if I use the
$_SESSION functions or write the stuff myself makes no difference, actually
then I can just leave it in the database and read it every time ... but that
is just slow ... I want to create it persistant in the system memory so
every script can access the contents without having to recreate the whole
tree each time ...

 mathias rockel

----- Original Message -----
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "Mathias Rockel" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 3:30 PM
Subject: Re: [PHP] Persistent global data ?


> Write persistent data to a file on server side
>
> ----- Original Message -----
> From: "Mathias Rockel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 14, 2003 8:12 AM
> Subject: Re: [PHP] Persistent global data ?
>
>
> Hi!
>
> I'm not sure if that would be a good idea in respect to performance, also
> AFAIR cookies cannot save objects (can they?), and there are size
> limitations on cookies, so I probably cannot use them because they could
not
> contain all the data ... and also, if I have the complete file structure
> saved on the client side its very easy to modify the data, possibly
getting
> access to stuff that is not meant to be seen ... no cookies =).
>
> thanks anyway !
>
>  mathias rockel
>
> ----- Original Message -----
> From: "Rick Emery" <[EMAIL PROTECTED]>
> To: "Mathias Rockel" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Tuesday, January 14, 2003 3:06 PM
> Subject: Re: [PHP] Persistent global data ?
>
>
> > cookies?
> >
> > ----- Original Message -----
> > From: "Mathias Rockel" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 14, 2003 7:33 AM
> > Subject: [PHP] Persistent global data ?
> >
> >
> > Hi all !
> >
> > I am currently writing some kind of Document/File-Library in a LAMP
> > environment.
> >
> > As the library should be able to handle various file types, and most
file
> > types have to be handled differently internally, I would like to use
> > Objects/Classes to make the code for the Library iself independent from
> the
> > stuff that is individual to the different file types.
> >
> > Now I noticed early that when I use Objects in PHP and have to create
many
> > for them each time a script runs it slows the system down considerably.
It
> > seems you can now save objects in sessions which AFAIR was not possible
> last
> > time I tried. But then I would have to read the whole file index (which
is
> > actually a tree) into a session variable for each user, and I don't know
> if
> > thats a good idea performancewise. It would be a rather large
> > multi-dimensional array.
> >
> > So I would like to know if there is any possibility in PHP to create my
> own
> > persistent superglobal, a variable which can be read by any script
> running.
> > I think something similiar is available as the "Application" Object in
ASP
> > under IIS. I know I have to take care of locking and stuff (although the
> > end-user scripts would only need read access to it), but if I could
write
> > some functions which just would check if the tree is already in memory
or
> > not (after a server shutdown or whatever), and if not just read it in
from
> > the database to make it available in every other script.
> >
> > The only thing I've found so far which I think may be a possibility is
the
> > shared memory stuff that PHP supports, but I don't know anything about
> that
> > on the system level, and its not explained in much detail in the PHP
> manual.
> > Is that something I should follow, or can't I use it ? Can I somehow use
> the
> > underlying Apache ? Are there better options ?
> >
> > any help/suggestions/hints are greatly appreciated !
> >
> > mathias rockel
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to