是否可以将数据存储在服务器端的变量而不是数据库表中? [英] Is it possible to store data in a variable rather than database table at server side?

查看:79
本文介绍了是否可以将数据存储在服务器端的变量而不是数据库表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我设计了一个网站并成功托管。



现在,我想计算访客总数到我的网站。



我是否需要使用单字段和单个记录创建新数据库



还有其他良好做法可以执行相同的操作吗?



我是什么尝试过:



我已按上述方式实施。具有单个字段和记录的表。

So, I've designed a website and successfully hosted.

Now, I would like to count the Total Number of Visitors to my Site.

Do I need to create a New Database Table with a Single Field and Single Record?

Is there any other good practices to perform the same operation?

What I have tried:

I have implemented in above described way. Table with single Field and record.

推荐答案

很抱歉没有为您提供有关这种广泛使用的功能的全面建议。这很难做到只是因为你甚至没有提到你正在使用的服务器端技术,需要花费很多时间才能完全覆盖它。



也许一个相当常见的方法是:你最有可能不自己托管网站,但使用一些网络托管公司。几乎所有此类公司都使用共享主机为所有站点提供Web统计信息。查看托管公司提供的软件或询问他们的客户支持。很抱歉,如果此选项不适合您。下次,尝试提供更多相关信息。



-SA
Sorry for not giving you a comprehensive advice on such a widely used feature. It's hard to do just because you did not even mention what server-side technology you are using, would take to much time to cover it all.

Perhaps one fairly common way is: it's most likely that you don't host the Website yourself, but use some Web hosting company. Almost all of such companies provide Web statistics for all sites using shared hosting. Look at the software provided by your hosting company or ask their customer support. Sorry if this option is not suitable for you. Next time, try to provide more relevant information.

—SA


这篇关于是否可以将数据存储在服务器端的变量而不是数据库表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆