Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6665849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:46:00+00:00 2026-05-26T02:46:00+00:00

So I am making an application using cakePHP. I am wondering if anyone knows

  • 0

So I am making an application using cakePHP.

I am wondering if anyone knows how to get the number of unique views a post on a forums gets.

So in other words. Say I post to a forum. When somebody views my post, he should only be able to add to the # of views once.

I am not sure if cakePHP has anything built in that might be able to help with this as I am fairly new to it.

If not, a custom solution isn’t a problem, but if someone could guide me in the right direction. As in how something of this nature can be accomplished. I have done this using the IP address of the user and storing it in a database which gets flushed daily but there might be a better solution. Please let me know.

Thanks for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:46:00+00:00Added an answer on May 26, 2026 at 2:46 am

    I would log every view of each post in a table with the visitor’s IP and time & date of the view.

    You could then make a query to count the unique IPs per post and day. It would give you the number of unique views per day.

    If you are looking to be thorough, you could also store user-agent information and filter out search engine crawlers (Google, bing, etc.).

    A handy tutorial with complete usable code here: hitcount behavior for CakePHP

    I found here a few interesting insights about Unique Visits and Visitors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a rails(3.0.11) application using youtube_it api. Is it possible to get
I'm using CakePHP to build an application which, among other things, generates dozens of
I am making a RIA application using Silverlight and web services. The method of
Using J2SE, I tried making a LAN application using java.net.*, and it worked perfectly.
I am making a test fullscreen application using this guide . However, I am
I'm using C# and I'm making an application where a lot of UI loading
I am using a third-party application, and making a call to create an instance
I've been tasked with making a prototype web application, and i'm debating between using
I am making an application (iPhone app) which gets information (jokes) from an RSS
we are making an web application using some big asp.net web toolkit. At the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.