How to find out, how a user visited a particular page ?

Answer : We add a counter in that page….

How to find out, how a user visited a particular page ?

  • We add a counter in that page.
  • When a page load that counter value will increase.
  • For storing its previous value we can use session, database etc.
<?php
$counter++;
?>
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like

List out the features of PHP

Performance Compare to other languages such as JSP and ASP, PHP script is executed much faster than those scripts which are written. The server workload and loading time is automatically…
View Answer