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 give me the general steps to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.