存储服务器端数据的最佳方式? [英] Best way to store serverside data?
本文介绍了存储服务器端数据的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在服务器上存储数据的最佳方式是什么,可以使用 PHP 更新?
就我而言,我正在存储一个数字.我应该使用:
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 表
- .TXT 文档
推荐答案
如果您不需要搜索、更新和订购数据,您可以使用 .txt 文件......但如果您需要查询数据,我强烈推荐一个数据库(例如 MySQL).
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).
如果您只存储一个数字,则可以使用 .txt 文件来完成.
If you store just one number, you can do it using a .txt file.
这篇关于存储服务器端数据的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文