Posted By

FelixT on 08/15/10


number link click load

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Page View Counter

 / Published in: PHP

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

  1. <?php
  3. if(isset($_SESSION['views']))
  4. $_SESSION['views']=$_SESSION['views']+1;
  5. else
  6. $_SESSION['views']=1;
  7. echo "Page View Count = ". $_SESSION['views'];
  8. ?>

Report this snippet  


RSS Icon Subscribe to comments
Posted By: artweb11 on August 17, 2010

This one works only for a single user, as a session is for one browser only.

Posted By: tomzup on November 25, 2010

dose not work on iweb ?

You need to login to post a comment.