title: How can I make a Cooldown in PHP?
body: <p>I am working on a Minecraft Alt Generator, but I do not know how to make a cooldown for it (30 minutes). I also need it to display a message if the player attempts to reload the page (how the generator works). Here is the code I currently have:</p>
  
  <pre><code>&lt;?php
  
  session_start();
  $lines = file('http://pastebin.com/raw/**********');
  echo $lines[array_rand($lines)];
  ?&gt;
  </code></pre>
  
  <p>Thanks!</p>