开发者

How do I make an RSS subscribers counter?

开发者 https://www.devze.com 2022-12-27 04:50 出处:网络
I’m trying to make an RSS subscribers counter using PHP and don’t know where to start. I’m not asking someone to write me the code, but do you know something good to read? or can you g开发者_如何学

I’m trying to make an RSS subscribers counter using PHP and don’t know where to start. I’m not asking someone to write me the code, but do you know something good to read? or can you g开发者_如何学Pythonive me the general steps to do that?


A quick count of how many times the RSS feed has been requested would be a good start, I suppose. Also, if several people subscribe using Google Reader, or Gmail (which puts RSS feeds at the top of the inbox), Google will, of course, query your feed only once. But, in the User-Agent string, it will tell you how many subscribers you currently have through that service. I imagine other feed aggrigators do something similar.

Also, Internet Explorer uses different User-Agent strings. If the user opens a feed in his browser, you get the normal IE User-Agent string, but if the browser is checking the feed automatically because the user is subscribed, you get a different string.

0

精彩评论

暂无评论...
验证码 换一张
取 消