Hey guys: i plan to make a hit counters hosting type website.
Basically, a user will signup, and copy and paste teh code onto there website.
With this script, it will track hits, and when there is a hit, it will transfer a variable (his username/domain website) back to my website, in which case will update the counter in mysql database (stored on my server), etc.
However, before i get started i wish to learn a bit more about how this works. If you guys could give me a few pointers and a quick runthrough, i will better be able to tackle this project.
I believe you are looking for something similar to what google Adsense uses, where they store the information and then send you the ads.
If this is correct, let us know so someone can comment further on it.
The counter still needs to be written in PHP or another server-side language on your end. I gave you a good example. It's taken right from one of my sites, and is how that site actually does it. The end user would paste this one their page:
Dan's the man if you want to use the code in the way you asked for it. This is really the only way to, unless you decide to include some perl coding that they can use on there site(which I believe Perl is on jsut about EVERY server, so there ya go). But just doing a copy/paste with a few lines of code works the way dan has displayed in his above post.
Like I had stated, this is what google does...jsut makes a link to their servers and extracts the data onto the suers's pages.
Originally posted by RenderStream Basically, i dont want to use php because i want people who run their websites on hosts who do not support PHP (such as geocities or lycos).
Nearly any host, at least any that are worth giving your money to, support PHP. ASP is where you run into problems, but ASP sucks so who cares?
Java doesn't connect to MYSQL, it doesn't have the ability. That's one of the reasons PHP was developed. People wanted to use Java for their sites, because they liked the ability, but no database functions.