<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
echo("<html>");
$loop = 0;
foreach(glob("/www/*.php") as $roll){
$rolls[$loop] = $roll;
//[debug] echo " $roll ";
$loop++;
}
$element = rand(0, count($rolls)-1);
require($rolls[$element]);
?>
</html>
I would like to recommend setting the cache directives in php rather than as a html meta tag. This way they're actually set as http headers which is better supported. (I had some issues with music not being dropped from cache when refreshing)