Code: Select all
<?php
if (!isset($_GET['number'])) {$a = 1;}
else {$a = $_GET['number'] + 1;}
$b = $a+ 1;
$self = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?number='.$a;
header("refresh: 1; url=$self");
echo 'You have wasted '.$a.' seconds of your life.';
?>