Return to Snippet

Revision: 30496
at August 15, 2010 19:01 by FelixT


Initial Code
<?php
session_start();

if(isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views']+1;
else
$_SESSION['views']=1;
echo "Page View Count = ". $_SESSION['views'];
?>

Initial URL

                                

Initial Description
A simple PHP application for counting how many views a page gets.

Initial Title
Page View Counter

Initial Tags
number, link, load

Initial Language
PHP