For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2006 > short-term data storage









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author short-term data storage
Simon Remppis

2006-05-27, 7:57 am

Hi,
In order to implement a data-reservation-system, I need to save data on a
server via php only for a short time but with a high frequency. The saved
data has to be readable only for the next 10-20 seconds. Is it possible to
write this data to the server's RAM? If this is impossible, I'd like to know
whether storing the data in a MySQL-Database or creating a file is more
effective.
Thanks in advance,
Simon Remppis


Virginner

2006-05-27, 7:57 am

"Simon Remppis" <S.Remppis@gopublic-solutions.de> wrote in message
news:e598uc$7r2$02$1@news.t-online.com...
| Hi,
| In order to implement a data-reservation-system, I need to save data on a
| server via php only for a short time but with a high frequency. The saved
| data has to be readable only for the next 10-20 seconds. Is it possible to
| write this data to the server's RAM?

That'll be Sessions, then.

D.


Colin McKinnon

2006-05-27, 7:57 am

Simon Remppis wrote:

> Hi,
> In order to implement a data-reservation-system, I need to save data on a
> server via php only for a short time but with a high frequency. The saved
> data has to be readable only for the next 10-20 seconds. Is it possible to
> write this data to the server's RAM? If this is impossible, I'd like to
> know whether storing the data in a MySQL-Database or creating a file is
> more effective.
> Thanks in advance,
> Simon Remppis


I KNOW PHP runs on lots of different platforms, but PLEASE people, tell us
what platform you are running on. Particularly for stuff like this it makes
a huge difference.

IF you are on Linux/Unix, then it doesn't make a lot of difference its
likely to be cached regardless - the question should be what is the easiest
API for you to cope with.

C.
simpelsimon@web.de

2006-05-27, 6:57 pm

Colin McKinnon wrote:

> I KNOW PHP runs on lots of different platforms, but PLEASE people, tell us
> what platform you are running on. Particularly for stuff like this it makes
> a huge difference.


Well, the problem is that I'm not developing the System for one single
computer but I'm trying to make it compatible to all systems on which
an apache-server can be installed. Of course this could make it
necessary to implement different solutions for different enviroments.
So I'd also appreciate any solutions that works just for one particular
system :)
Thanks,
Simon

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com