Jump to content

incrementing hit counter of a webpage


sangfroid

Recommended Posts

Hi

I am planning to write a code which increments the hit-counter of a webpage....

 

what i did is wrote a simple php

 

 

<?php

for ($i=0;$i<10;$i++)

  {

    header("Location: http://www.example.com/");

    sleep(5);

    }

?>

 

 

however it is not working....

 

i tried writing a small script in linux which runs the command wget to fetch the page...it fetches the page, but still the counter doesn't get incremented...

 

do you have any ideas how to accomplish it ???

Link to comment
https://forums.phpfreaks.com/topic/122899-incrementing-hit-counter-of-a-webpage/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.