PDA

View Full Version : gif counters!!!!!!!



hapanasu
March 2nd, 2003, 05:05 PM
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
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


< !--- 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+:

eyezberg
March 3rd, 2003, 02:56 AM
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..

hapanasu
August 6th, 2003, 02:50 PM
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

DigitalPimp
August 6th, 2003, 04:44 PM
If your a newbie then you shouldn't tackle something like this. Get some scripting experience then look ahead.

hapanasu
August 6th, 2003, 11:16 PM
this is what i want to learn first... step by step... anyhelp??? no meanies

Jubba
August 6th, 2003, 11:35 PM
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

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=5183958f1753f58d8f379268c5 f8eee0

DigitalPimp
August 7th, 2003, 02:26 AM
Sorry I wasn't trying to be mean it just seemed like something pretty advanced.