问题
What is the best way to store data on the server, that can be updated using PHP?
In my case I am storing a number.
Should I use:
- MySQL table
- .TXT document
回答1:
If you don't need to search, update and order data, you can use a .txt file.... but if you need to query data, i highly recommend a database (MySQL for example).
If you store just one number, you can do it using a .txt file.
来源:https://stackoverflow.com/questions/5628583/best-way-to-store-serverside-data