Question:
How can I maintain the count of how many persons have hit my site?
Answer:
First of all we have to make one text file to store the no of value the user hit..At th first time the file count vatriable is 0 then every time when the form is load and user click on that form at that time we open the file and increment the counter variable ....by one ,,,, then close the file in this way we can find that how many time the the page is hitted by the user
Source: CoolInterview.com
There is no problem to count the hits of your site it is resposibility of os. simply you add a field called hit in your table and write a program that will be execute when your site will be open.the program simply fetch last value of hit field increament by 1 and add to the table.but start by 0. Source: CoolInterview.com
Answered by: sanaullah | Date:
| Contact sanaullah
this is not a PHP question. Can be done with any language.A question about PHP at least have to be about that language. Source: CoolInterview.com
Answered by: conny | Date: 5/14/2009
| Contact conny
First of all we have to make the Statick varible and that var is initialize by 0 and than page is loaded that time increment by 1. Source: CoolInterview.com
Answered by: Taher | Date: 7/16/2009
| Contact Taher
This will increment the hit every time the user refresh the page whereas it should be incremented every time the user visited on that site uniqly. So this should not be the right solution. Source: CoolInterview.com
Answered by: veerendra Jain | Date: 7/1/2010
| Contact veerendra Jain
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|