---
title: "How can I maintain the count of how many persons have hit my site?"  
description: "How can I maintain the count of how many persons have hit my site?"  
author: "Anurag Sharma"  
published: 2011-03-18  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/466/how-can-i-maintain-the-count-of-how-many-persons-have-hit-my-site  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# How can I maintain the count of how many persons have hit my site?

We can write a code in PHP which will increment the count before executing the HTML code this counter will give us the number of hits.

\

## Answers

### Answer by Anurag Sharma

We can write a code in PHP which will increment the count before executing the HTML code this counter will give us the number of hits.

\


---

Original Source: https://www.mindstick.com/interview/466/how-can-i-maintain-the-count-of-how-many-persons-have-hit-my-site

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
