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

Answer Posted / asish kumar khuntia(mithu)

We add a counter in that page.
when a page load that counter value will increase.
eg.
<?php
$counter++;
?>

for storing its previpous value we can use session,
database etc.

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the use of "echo" in php?

552


What are php errors?

496


Can we extend two classes in php?

521


How big is nvarchar max?

569


What is the purpose of constant() function?

513






in PHP for pdf which library used?

553


What is the use of strpos in php?

550


How to define a function with any number of arguments?

561


What is the difference between substr() and strstr()?

780


What is meant by public, private, protected, static and final scopes?

528


what the new feature add in php 7.2?

537


What is preg_match?

540


Explain about the data types in PHP?

549


Tell us what does $_cookie means?

567


What are majic methords in php?

570