Posted By

sandrews_06 on 11/04/10


Tagged

php redirect date


Versions (?)

Last Edited at 11/04/10 05:16am

Viewed 2 times

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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.