Here is my script =========================code============================= <?php $hour = date("G"); $today = date("g:i a"); $msg = "Good Evening."; if($hour < 18) { $msg = "Good Afternoon."; } if($hour < 12) { $msg = "Good Morning."; } echo ("$msg The time is $now"); ?> =======================end code============================ I would like help on changing this script so that it will get the time from the users computer and not the server. Otherwise if I use it now a user that is on the east coast may get the wrong message, because the server is in the midwest. Thanks!
@tarponkeith is right I think this is exactly for you: h ttp://javascript.internet.com/page-details/time-greeting.html if you still prefer to use PHP, you may try to use mktime() to correct server time with the time zone of your visitors