With so many sites popping up every day on the internet, the sites
and even then compete with each other to gain the attention of the netter. various
sorts of things can be done by webmasters disebuah internet sites. Among others, they
could increase the hot topic discussed, games, discussions, polls, or
display the total visitors who have visited the site began early
establishment of the site to date.
Hit counter initially used to obtain the number of visitors on a site
and rating sites. If a site is flooded with visitors, the site rose
increasingly popular.
Hitcounter sometimes made with various programming languages that can
Netter because it looks interesting. In this discussion, I will try
create hit counter simple, simple, and certainly informative.
algorithms
Suppose that we make our file name hitcounter.php, I will put the value
hitcounter initialization, ie $ counter at the beginning of the file. Will be automatically edited
and plus one at the beginning of the file, if one visits the site. this
done automatically by the function fopen (), fputs (), and other file functions.
Program listing
Display program at run time:
after that we execute hitcounter file, then open the file again hitcounter.php
it, you'll find the file as follows:
You can put it on your web page. the downside of
This program is if the traffic that will open your site is so dense, so
will be scrambling to open and save the file. Possible so that in place
congestion. Have you developed the program. Good luck ......
0 comments:
Post a Comment