All pastes #564095 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-06-13 13:15 UTC
rendered paste body
<?php $file = "count.txt";if (file_exists($file)) {  $fp = fopen("$file", "r+");  flock($fp, 1);  $count = fgets($fp, 4096);  $count += 1;  fseek($fp,0);  fputs($fp, $count);  flock($fp, 3);  fclose($fp);} else { echo "Can't find file, check '\$file'<BR>"; }?><?php echo $count; ?> visits since June 13, 2007.