Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP date question

Name: NWS 2007-06-18 2:40 ID:PlS1wRw+

Ok I can echo "Hello World!" but the problem is that after 30 minutes it should only echo "Hello you loser!"
How do I do this?

Name: Anonymous 2007-06-19 1:04 ID:778Msdes

<?php

if( isset( $_COOKIE['time'] ) )
{
    if( time() < ( $_COOKIE['time'] + 30 * 60 ) )
    {
        echo 'Hello, World!';
    }else
    {
        echo 'Hello, you loser!';
        die;
    }
}else
{
    setcookie( 'time', time() );
    echo 'Hello, World!';
}

?>

<meta http-equiv="refresh" content="5;<?=$_SERVER['PHP_SELF'];?>" />

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List