Mega Code Archive
Categories
/
Php
/
Components
File based page counter
Failed to open file
$cfile
."); } $s = fgets($fh, 6); $count = (int) $s; $count = $count + 1; $count = str_pad($count, 6); rewind($fh); fwrite($fh, $count); echo "$count"; fclose($fh); ?>