计算点击次数 [英] Counting Clicks

查看:123
本文介绍了计算点击次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里寻找一些想法。


计算图像被点击次数的最佳方法是什么?


我在一个网站上有一个图像库,想要计算每个

图像被点击的次数(点击一个窗口中的全尺寸图像)

这样我知道哪些是受欢迎的,哪些不受欢迎。


我虽然只是在数据库中添加了一个额外的字段,它提供了图像细节和增量的
每次用户点击它时,数字为1

就在图像投放之前。如果有两个人同时点击同一张图片,那么这种下降的可能性有多大?


其他任何想法都非常感激。

Just looking for some ideas here.

What is the best way to count how many times an image has been clicked?

I have an image gallery on a site and want to count how many times each
image has been clicked (clicking pulls up the full size image in a window)
so that I know which are popular and which are not.

I though about wimply adding an extra field to the database which serves up
the image details, and incrementing a number by 1 each time a user clicks it
just before the image is served up. What are the chances of this falling
over if two people were to click the same image at the same time?

Any other ideas much appreciated.

推荐答案

" Steven Burn" <所以******* @在-time.invalid>在消息中写道

news:u9 ************** @ TK2MSFTNGP12.phx.gbl ...
"Steven Burn" <so*******@in-time.invalid> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
你总是可以解析服务器日志'为图像'的GET请求?
You could always parse the server log''s for the image''s GET request?




我想要的东西,我可以在
的管理部分使用
网站。因此,管理员可以登录并能够看到哪些图片最多获得
,哪些图片获得最少的点击次数。


只有我能想到的自动方式是通过更新数据库。



I wanted something that I would be able to use in an admin section of the
site. So the admin people can log in and be able to see which pictures get
the most and which get the least hits.

Only automatic way I can think of is by updating the DBs.


数据库将是最好的方式恕我直言(刚刚提到网站日志'作为替代)


-


问候


Steven Burn

Ur IT Mate Group
www.it-mate.co.uk


保持免费!


" Keith" < @>。在留言新闻中写道:OF ************** @ TK2MSFTNGP11.phx.gbl ...

| Steven Burn <所以******* @在-time.invalid>在消息中写道

|新闻:u9 ************** @ TK2MSFTNGP12.phx.gbl ...

| >您可以随时解析服务器日志以获取图像的GET请求吗?

|

|我想要一些我可以在

|的管理部分使用的东西现场。所以管理员可以登录并能够看到哪些图片获得了
|最多,哪个得分最少。

|

|只有我能想到的自动方式是更新数据库。

|

|
The DB is going to be the best way of doing it IMHO (just mentioned the site log''s as an alternative)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Keith" <@.> wrote in message news:OF**************@TK2MSFTNGP11.phx.gbl...
| "Steven Burn" <so*******@in-time.invalid> wrote in message
| news:u9**************@TK2MSFTNGP12.phx.gbl...
| > You could always parse the server log''s for the image''s GET request?
|
| I wanted something that I would be able to use in an admin section of the
| site. So the admin people can log in and be able to see which pictures get
| the most and which get the least hits.
|
| Only automatic way I can think of is by updating the DBs.
|
|


" Steven Burn" <所以******* @在-time.invalid>写在消息

新闻:O1 ************** @ TK2MSFTNGP11.phx.gbl ...
"Steven Burn" <so*******@in-time.invalid> wrote in message
news:O1**************@TK2MSFTNGP11.phx.gbl...
数据库将会是最好的方式恕我直言(刚刚提到
网站日志'作为替代)
The DB is going to be the best way of doing it IMHO (just mentioned the
site log''s as an alternative)




谢谢。我怀疑的是什么。



Thanks. What I suspected.


这篇关于计算点击次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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