Inbuilt counter in Php

parindar

New Member
Can anyone tell me whether there is any function available in php to check the number of hits for a page (inbuilt counter) ???

Or do I have to write a script using text file or database , to update the count.

In case it is available, please let me know if any special dll's are required for it.

It's a bit urgent.
 

Chris Kelleher

Administrator
Staff member
No there are no built-in counters available using PHP.... you would have to either update a text file, or a more reliable method would be to use a database field.
 

parindar

New Member
But Chris, there are two functions in Php i.e gettoday() & gettotal() that are supposed to count number of hits for a page per day and total hits respectively.

I tried them but they don't work. So, I was a confused.
 
Top