Need A Page View Script

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 22, 2009, 05:20 AM
430673 members and 297824 Topics
Latest Member: Gogou
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: OmniPotens, yawa-ti-de)  |  Need A Page View Script
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Need A Page View Script  (Read 52 views)
owner (m)
Need A Page View Script
« on: October 22, 2009, 07:30 PM »

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)
Re: Need A Page View Script
« #1 on: October 22, 2009, 08:12 PM »

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
Re: Need A Page View Script
« #2 on: October 23, 2009, 12:35 PM »

Quote from: owner on October 22, 2009, 07:30 PM
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)
Re: Need A Page View Script
« #3 on: October 23, 2009, 07:22 PM »

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)
 Free Web Hosting Offer by Nairahost  Contemporary Furnishings  How Can I Link My Blogs To Adsense  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.