PHP Labware source code viewer / Internal utilities | 27 Dec, 2024
Root | Help
./LabWiki/hitcounter.php
<?php

/*
LabWiki 1.1, 12 May 2011, by Santosh Patnaik, MD, PhD. Based on QwikiWiki 1.5 of David Barrett
*/

// hitcounterlog.txt should be writeable
$file = "hitcounterlog.txt";
$count = file_get_contents($file);
if(is_numeric($count)){$count = $count+1;}else{$count=1;}
echo($count);
$open = fopen($file, "w");
fwrite($open, $count);
fclose($open);
Presented with Sourceer
PHP Labware home | visitors since Sept 2017