Jump to content

Page Views Counter


richiejones24

Recommended Posts

Nope. Just make sure to optimize your database so it doesn't slow your site down from the queries and you should be good. There is another option, which is offloading that to something like Google Anayltics, and just let them take care of it. But if you want to be able to query it and show it to the visitors, nope there is not a better method.

Link to comment
https://forums.phpfreaks.com/topic/254967-page-views-counter/#findComment-1307320
Share on other sites

  Quote

This seems very resource intensive, is there a better way to record statistics??

2 people answered, I'll be the 3-d men :)

 

What could be another way from your point of veiw? In any case you need to save this info anywhere on a disk. In any case it will be a file! But if you use a singe file you have to care of dobble-access to a file at one time. From the other hand, if you use MySQL or any other DB, that DB is carring about it. Because DB uses files also but it controls access.

In other words... Let DB to work for you. Like you do it now.

 

"Just make sure to optimize your database" ©

Link to comment
https://forums.phpfreaks.com/topic/254967-page-views-counter/#findComment-1307329
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.