//Nollställde räknarenb 15 oktober 2008
/*
* Create an empty text file called counterlog.txt and
* upload to the same directory as the page you want to
* count hits for.
*
* Add this line of code on your page:
*
Warning: include(text_file_hit_counter.php): Failed to open stream: No such file or directory in /home/hantlars/domains/xn--terminalglasgon-ktb.se/index.php on line 9
Warning: include(): Failed opening 'text_file_hit_counter.php' for inclusion (include_path='.:/opt/alt/php84/usr/share/pear:/opt/alt/php84/usr/share/php:/usr/share/pear:/usr/share/php') in /home/hantlars/domains/xn--terminalglasgon-ktb.se/index.php on line 9
*/
// Open the file for reading
$fp = fopen("counterawdfvg46923ktr.tx", "r");
// Get the existing count
$count = fread($fp, 1024);
// Close the file
fclose($fp);
// Add 1 to the existing count
$count = $count + 1;
// Display the number of hits
// If you don't want to display it, comment out this line
//echo "
Page views:" . $count . "
"; // Reopen the file and erase the contents $fp = fopen("counterawdfvg46923ktr.tx", "w"); // Write the new count to the file fwrite($fp, $count); // Close the file fclose($fp); header( "HTTP/1.1 301 Moved Permanently" ); header( "Status: 301 Moved Permanently" ); header( "Location: https://www.xn--glasgon-d1a.se/" ); exit(0); ?>