
Untitled
By: a guest on
Jun 21st, 2012 | syntax:
PHP | size: 0.21 KB | hits: 18 | expires: Never
<?php
$file = "protection_timestamp.txt";
$handle = fopen($file,"r+");
$timestamp = fread($handle,filesize($file));
if($timestamp < time())
{
fwrite($handle,time());
// Code
}
fclose($handle);
?>