# Gif counters!

**URL:** <https://forum.kirupa.com/t/gif-counters/14794>\
**Category:** Uncategorized\
**Created:** [March 2, 2003, 10:05pm UTC](https://forum.kirupa.com/t/gif-counters/14794 "2003-03-02T22:05:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hapanasu](https://avatars.discourse-cdn.com/v4/letter/h/cdc98d/32.png) [@hapanasu](https://forum.kirupa.com/u/hapanasu)\
**Post date:** [March 2, 2003, 10:05pm UTC](https://forum.kirupa.com/t/gif-counters/14794/1 "2003-03-02T22:05:03Z")

</div>

Hi, for over a week know i’ve tryed to figure out how to make a gif counter that i can use. i searched for tutorials and codes. but with no luck.

i tried to sign-up for free at [http://www.okcounter.com](http://www.okcounter.com)  
but it’s dead. and i want to use counters that he made. this is why i start to search for the code.  
 ![](http://okcounter.com/skin_images/1174_sample.gif)

i know his code is this

```auto

< !--- Free Counter Code Begin --->
<p align="center">< img
src=http://okcounter.com/count.html?id=51035
border=0>< !--- Free Counter Code End --->

```

but each individual gets there own id code.

so the question is how does one do this? I would like to make my own.!

_sorry if this is the wrong thread to ask at_

thank you:A+:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 3, 2003, 7:56am UTC](https://forum.kirupa.com/t/gif-counters/14794/2 "2003-03-03T07:56:42Z")

</div>

It’s not the wrong thread, coz you need server side scripting (php, asp,…) to save the number of hits/counts either into a database or textfile.  
The free service used a unique ID for each person signed up to increment individual counters; if you have a host with php, you could do that yourself with a simple textfile, or even more than one if you want to track different pages.

I don’t know how to do that with gifs, must be easy to, but attached you’ll find a full example if a click counter using Flash, PHP and simple text files (which you’ll need to chmod on your server to make them writable!)

Hope this helps…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2003, 6:50pm UTC](https://forum.kirupa.com/t/gif-counters/14794/3 "2003-08-06T18:50:44Z")

</div>

i know this thread is old… but i still don’t know how to do this… i’m still a newbie… but tutorials work great… so cah anyone still help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2003, 8:44pm UTC](https://forum.kirupa.com/t/gif-counters/14794/4 "2003-08-06T20:44:58Z")

</div>

If your a newbie then you shouldn’t tackle something like this. Get some scripting experience then look ahead.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 3:16am UTC](https://forum.kirupa.com/t/gif-counters/14794/5 "2003-08-07T03:16:09Z")

</div>

this is what i want to learn first… step by step… anyhelp??? no meanies

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 3:35am UTC](https://forum.kirupa.com/t/gif-counters/14794/6 "2003-08-07T03:35:42Z")

</div>

its not too difficult… first you will have to learn how to count visitors to your website… a simple script that uses only a text file can be found in my first post here: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24666&perpage=15&highlight=flash%20php&pagenumber=2](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24666&perpage=15&highlight=flash%20php&pagenumber=2)

that will show you how to count visitors… then all you have to do is play around with the PHP image functions found here: [http://us3.php.net/manual/en/ref.image.php?PHPSESSID=5183958f1753f58d8f379268c5f8eee0](http://us3.php.net/manual/en/ref.image.php?PHPSESSID=5183958f1753f58d8f379268c5f8eee0)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 6:26am UTC](https://forum.kirupa.com/t/gif-counters/14794/7 "2003-08-07T06:26:55Z")

</div>

Sorry I wasn’t trying to be mean it just seemed like something pretty advanced.
