0

i'm working on a small script to "call people in comming order" from a big hall. To be more specific (its a little hard to explain it on my non-foreign lang), the people come at this building, take a number and wait to be called from a big monitor, displaying the page on full-screen mode.

So, i have two "routes" (or scripts), a "Monitor" that show the main windows with the actual number and the terminal that is calling, this is for the big monitor on the hall. The second one its a "Controls" that have some controls like "Number +". "Number -", etc.

The comunication with this two scripts is with jquery and json data.

So.. there are more than one "Controls" windows, a variety of machines that can "call" for a number.

The "Controls" scripts, saves the data on some Databases. And the Monitor script, checks for new data every 1s and change the number and the terminal calling with jquery for the new one.

For that reason, i have to store the data on a Database. i have MySQL on a shared server here but i prefer to store the data local in the server machine, without depend on a server.

What is the best option for that? the first come to my mind is .TXT databases, but its an ugly solution. What about store the data on a Json files? SQLite its not an option.

Plus, the database will be reseted every day.

Im working with Laravel (if its matters), maybe Laravel offers some solution for that.

4

3 回答 3

1

您可以检查小型数据库 (SDB) 语言。它是用php编写的并使用json。在这里查看:http: //pagenotes.com/wordpress/2011/12/08/sdb/

于 2015-11-29T06:12:11.777 回答
0

只需使用 WAMPserver ...

http://www.wampserver.com/en/

提供你在窗户上

然后您只需在本地“托管”您的网站

于 2013-06-11T20:24:52.723 回答
0

您可以使用 APC,替代 PHP 缓存:

http://php.net/apc

于 2013-06-11T20:31:40.497 回答