You would have to put them in a file...
You store the two words in the file and you put an expiration date...
Something like :
<?
<?php
$check = file("mem_words.txt");
if($check[0] > time()) {
$rand1 = $check[1];
$rand2 = $check[2];
} else {
$today_year = date("Y"); // gets the current year
$today_month = date("n"); // gets the current month
$today_day = date("j"); // gets the current day
$today = mktime (0, 0, 0, $today_month, $today_day, $today_year); // get the date of the current day at 0:00
$tomorrow = $today + 86400; // tomorrow at 0:00
$array = file("words.txt");
$num = count($array);
$rand1 = $array[rand("0",$num-1)];
$rand2 = $array[rand("0",$num-1)];
$fp = fopen("words.txt", "w+");
fputs($fp, $tomorrow . "\n");
fputs($fp, $rand1 . "\n");
fputs($fp, $rand2 . "\n");
fclose($fp);
}
?>
<body bgcolor="#000000">
<font color="#ffffff" size="2"><center>Random Words 1:<br><?= $rand1; ?><br>
Random Words 2:<br><?= $rand2; ?><br><input type="button" value="Close"
onclick="java script:self.window.close();"></center></font>
</body>
NOTE : code has not been tested !