PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 29th, 2002, 06:35 PM
bob.g bob.g is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 bob.g User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
help writing a counter....

Hi everyone, as part of my final year project I am suppose to write a counter for a web site. Can someone please help me, pointing out things like 1: how/where to start. 2: how to write the code and
3: pitfalls to look out for.

Thanks for all contributions.
BOB.g

Reply With Quote
  #2  
Old July 29th, 2002, 06:55 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: help writing a counter....

1: how/where to start.
make a list of features you want your counter to have. know what you want before you start. from that list, create an order of which feature should be done before the other.

2: how to write the code.
the idea of a counter is to store the value of page visits into a db or txt file, and to alter that number (by adding one) each time the page is viewed. you could easily expand on this idea to have a seperate counter for each page.

3: pitfalls to look out for.
keep in mind that if you're planning to write to a txt file, that it can only be accessed by one request at a time - so it'd probably be a good idea to lock other users out when it's in the middle of a process. counters are pretty straight forward and simple scripts, not a lot to go wrong just make sure your code looks pretty.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > help writing a counter....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway