PHP / MySQL

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley

Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Time Based Greetings

Monday June 2, 2008
You can use PHP to look up the current time and date. Using this information you can give your users different greetings. In our Time Based Greetings script, we check to see what time of day it is and greet the user with Good Morning, Good Afternoon or Good Evening accordingly.

Comments

June 5, 2008 at 2:11 pm
(1) Drew says:

What if your server is not in the same time zone as you are? My server is off by 2 hours so at 1:00 PM It is still saying good morning!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore PHP / MySQL

About.com Special Features

PHP / MySQL

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.