Lab #4 

7. Write a program to keep track of how many times a visitors has loaded the page in PHP

index.php

<?php
session_start();
$total = $_SESSION['count']+=1;
echo "Visitor count ".$total;
?>

Output

refresh the page and counter will increase


Happy Coding :)