Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/pcstore/public_html/
Upload File :
Current File : /var/www/html/mmishra/indem/pcstore/public_html/hit_counter.php

<?php
//                        0      0 00000 00000 00000    00000   0   0  0 0
//                        0      0   0   0     0        0       0   0  0 0
//                        0  00  0   0   00000 00000    0  000  0   0  0 0
//                        0 0  0 0   0       0 0        0   0   0   0   0 
//                        00    00 00000 00000 00000    00000   00000   0
//
//"Basic hit counter in PHP"
//***************************************************
//Written by: Wiseguy`                              
//E-mail    : wiseguy@punkass.com
//URL	  : http://www.Wis3guy.org - http://www.axion-network.net
//ICQ       : Number here
//Any bugs or errors, email - wiseguy@punkass.com
//***************************************************


//Finally here is our hit counter:

/* Code start here */
if(file_exists("hits.txt"))
{
     $exist_file = fopen("hits.txt", "r+");
     $new_count = fread($exist_file, filesize("hits.txt"));
     $new_count++;
     fclose($exist_file);
     // to have an invisible counter, comment out next line;
     print("Hit Counter: $new_count");
     $exist_count = fopen("hits.txt", "w");
     fputs($exist_count, $new_count);
     fclose($exist_count);
} else {
     $new_file = fopen("hits.txt", "w");
     fputs($new_file, "1");
     fclose($new_file);
}

/* Code ends here */
?>