<?php
$page = $_SERVER['PHP_SELF'];
$sec = "10";
date("Y-m-d");
date_default_timezone_set('Asia/Kolkata');
$time= date('H:i');
if($time == '11:51')
{
echo mt_rand(0,9);
echo '<br>';
}
?>
<?php
$page = $_SERVER['PHP_SELF'];
$sec = "10";
?>
<html>
<head>
<meta http-equiv="refresh" content="<?php echo $sec?>;URL='<?php echo $page?>'">
</head>
<body>
<?php
echo "Watch the page reload itself in 10 second!";
?>
</body>
</html>
// in this code insted of second i wont to pass time like 12.00 then the code execute in above code after 10 second page refresh and generate number on every 10 sec and i also wont to generate 1 random number on particular time