|
owner (m)
|
Hello all great webmasters like Yawa, afam, dhtml and co, pls, i need a script that count how many time a page is view, i dont mean website counter. I mean a page counter that shows how many time a page is view, like d one of nairaland.
|
|
|
|
|
|
yawa-ti-de (f)
|
I am going to go out on a limb and say, if we are on the same page, that feature is in-built in smf (or whatever forum app for that matter).
Personally, I am not a fan of counters. It only lets the site visitor know whether or not your site is popular. To me, certain info should remain private as it can make or break a site. Having said that, for a forum, it makes sense as users will know what the hot topics are. I guess it all depends on the context.
|
|
|
|
|
|
kolitos007
|
Hello all great webmasters like Yawa, afam, dhtml and co, pls, i need a script that count how many time a page is view, i dont mean website counter. I mean a page counter that shows how many time a page is view, like d one of nairaland.
You don't really need any code, you can use google analytic, its really simple to use, all you just do is register and follow the instruction you can have it do so many things for you, and you can even set goals to for example see how many pple send you messages using the contact form.
|
|
|
|
|
|
hostmot (f)
|
Well, as yawa-ti-de as said, most forum scripts already come shipped with page counters. But if you are looking to create a custom counter using php, you would have to store the page view inside a database or a text file. A text file is easier, but you would have to check out the file functions in the php.net manual. It bores down to storing a number that increments when the page is called in the text file, and calling the content of the text file at the point where you want the number of page views displayed. I'd have posted an example here, but I've forgotten the nitty gritty of the file functions. Just google php file functions and put your innovation into good use. Biodun, Hostmot Support ( www.hostmot.com)
|
|
|
|
|
|