简体   繁体   中英

Best way to store serverside data?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM