# Php counter

**URL:** https://forum.kirupa.com/t/php-counter/91038
**Category:** Uncategorized
**Created:** [May 13, 2003, 11:26pm UTC](https://forum.kirupa.com/t/php-counter/91038 "2003-05-13T23:26:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nobody](https://forum.kirupa.com/u/nobody)
#### Post date: [May 13, 2003, 11:26pm UTC](https://forum.kirupa.com/t/php-counter/91038/1 "2003-05-13T23:26:54Z")

</div>

I did a search, please don’t beat me too hard if this has been asked a million times.  
How could I make a hit counter in PHP? Just a simple text one.  
I’m sure it would be an easy task and I have a semi-solid idea how to do it, I just don’t really know how to code it.

I was thinking you would set up a variable that would just be increased each time someone visited a page and that number would be drawn from the text file and displayed. I’m not worried about IP stuffs or anything.

Any help would be thuper
