PHP Date Redirect


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.