Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file = "protection_timestamp.txt";
- $handle = fopen($file,"r+");
- $timestamp = fread($handle,filesize($file));
- if($timestamp < time())
- {
- fwrite($handle,time());
- // Code
- }
- fclose($handle);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment