Posted By

sandrews_06 on 11/04/10


Tagged

php redirect date


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

pytheas
jasonjang
vehler


PHP Date Redirect


 / Published in: PHP
 

  1. <?php
  2. /*
  3.   Closing Date
  4. */
  5. $contest_end_date = 'December 31, 2010 5:00pm';
  6.  
  7. if (strtotime($contest_end_date) < time()){
  8. header("Location: closed.php");
  9. }
  10.  
  11. ?>

Report this snippet  

You need to login to post a comment.