Shut down a page at a given time
I want to shut down a page 2. September at 2 am. From that time the user should be redirected to another page. I have used this codeblock:
<?php if (date("d.m.Y H:i:s") > '02.09.2012 02:00:00') { ?>
<?php
header( 'Location: page_closed.php' ) ;
?>
<?php } ?>
My problem is that the page redirects now at 31. August, so I can't use this code Any suggestions?
Regards
Rune