sangfroid Posted September 5, 2008 Share Posted September 5, 2008 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 More sharing options...
BlueSkyIS Posted September 5, 2008 Share Posted September 5, 2008 http://www.google.com/search?client=safari&rls=en-us&q=php+hit+counter&ie=UTF-8&oe=UTF-8 result 1 http://www.developingwebs.net/phpclass/hitcounter.php Link to comment https://forums.phpfreaks.com/topic/122899-incrementing-hit-counter-of-a-webpage/#findComment-634754 Share on other sites More sharing options...
sangfroid Posted September 5, 2008 Author Share Posted September 5, 2008 seems some confusion over here... example.com is some other web site and i am planning to increase its hit counter i don't own example.com Link to comment https://forums.phpfreaks.com/topic/122899-incrementing-hit-counter-of-a-webpage/#findComment-634764 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.