Jump to content

Recommended Posts


Posted

Theres more to a web counter that the images.. Yes you can create the 0-9 numbers in a paint program, but (to my knowledge) there is no way that flash can count how many hits your site will get.

If you want the code, i'm sure some here can help you. But there are free hit counters on the web if that is all your looking for... Google is your friend here.

Hope this Helps.. :)

Posted

You can make a counter script using images, yes. It requires using PHP and the gd extension. It's a good bit of coding but it can be done.

As for flash, I'm not sure if it can be done or not. I'm pretty sure it can somehow using xml and actionscript but would also require php to write to the xml file and then have flash read from that xml file. Either way, that's a good bit of work just to have an image recreated on every hit.

Posted

PHP counter (can be easily integrated into a GD image):

$viewss = file("views.txt");
$views = $viewss[0]; $views++;
$fp = fopen("views.txt", "w");
fwrite($fp, $views);
fclose($fp);
$counter = "This sig has been viewed $views times!";

Make sure you have a file called "views.txt without the quotes in the same directory and CHMOD'ed to 777... :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...