Calculating the number views to my article


   i wan to calculate the views to my article over a page.., so can you please help me out the concept that how my code should work..., whether i need calculate the views based on the ip or using some other mechanisms..

  thanks in advance

It depends, what do you want? Views? Unique views?
If you want unique views, you’ll need to use the IP. And then you have to decide if an IP should be counted only once a day, or just once forever.