homepage Welcome to WebmasterWorld Guest from 54.224.179.98
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
input on the most efficient php counter?
blaketar




msg:3599039
 11:12 pm on Mar 12, 2008 (gmt 0)

I am looking for some input on what others think would be the most efficient route for a unique page counter, files or DB?

One thought was utilizing JavaScript to make a remote call to a php script which updates a unique file, then returns the new COUNTER STAT NUMBER for display. This way search spiders, non-javascript browsers,etc. donít increment the counter number. Another advantage to this would be the page can load without any lag time (I think) from the javascript making the remote call?

I believe ebay's listings work in a similar fashion.

Any other suggestions?

 

cameraman




msg:3599107
 12:22 am on Mar 13, 2008 (gmt 0)

I usually lean toward db solutions but for this a file would probably be faster.
The javascript is a good thought.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved