Can anyone extrapolate on how to implement a basic \"good evening\" or \"good morning\" based on the user\'s time setting?
Perhaps PHP will fetch the server time, but I
$hour = date('H'); if ($hour >= 20) { $greetings = "Good Night"; } elseif ($hour > 17) { $greetings = "Good Evening"; } elseif ($hour > 11) { $greetings = "Good Afternoon"; } elseif ($hour < 12) { $greetings = "Good Morning"; } echo $greetings;