<?phpFirst we get the timestamp for the current date using the time () function. For the purpose of our script the only important parts are the hour and the AM/PM. We set a variable for each of these aspects of the time.$b = time();
$hour = date("g",$b);
$m = date ("A", $b);

