title: PHP redirect on exact date
body: <p>I'm using this code to redirect based on the hour of the day, and the day of the week.</p>
  
  <p>Here it is ..</p>
  
  <pre><code>&lt;?php
  
  $hour = date('G');
  $minute = date('i');
  $day = date('w');
  $m = $hour * 60 + $minute; // Minutes since midnight.
  
  if (
    $day == 0    // Sunday...
    &amp;&amp; $m &gt;= 615 // ... after 10:15…
    &amp;&amp; $m &lt;= 700 // ... but before 11:40…
  ) {
    header("Location: open.php");
  }
  else
  if (
    $day == 3     // Wednesday...
    &amp;&amp; $m &gt;= 1125 // ... after 18:45…
    &amp;&amp; $m &lt;= 1235 // ... but before 20:35…
  ) {
    header("Location: open.php");
  }
  
  ?&gt;
  </code></pre>
  
  <p>I was wondering if there was a way to redirect to a page based on an exact date in the future like April 25th or November 1st.</p>
  
  <p>Thanks .</p>