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

Daily Redirection

Monday May 5, 2008
Redirecting a user to a different website, or section of your website based on the day of the week is a very simple process. This script uses a the time and date functions along with a switch loop to redirect users based on the current day.

Daily Redirection Script

Comments
May 18, 2009 at 8:55 am
(1) Steve says:

Nice script but I had to add break; after each case statement in order to get it to work.

Steve

September 28, 2009 at 11:43 pm
(2) DanceArt says:

Script works, but I am getting the wrong days. Can you show how you fixed it?

Leave a Comment

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

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

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

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

All rights reserved.