start-homepage/php/hits.php
Sean Vreeland ff40fb74b7
major update
Major additions include:

Robust weather overhaul. 
hit counter.

Bugs:
Too many to list
2017-11-26 09:17:33 -08:00

10 lines
No EOL
262 B
PHP

<?php
$counts = ("counter.txt");
$hits = file($counts);
$hits[0] ++;
$fp = fopen($counts, "w");
fputs($fp , "$hits[0]");
fclose($fp);
header("Content-type: text/javascript");
echo "document.write('" . $hits[0] . "');";
?>