For this assignment I create a website using PHP. I used the “date” function to get the time from the web server. I then wrote a switch case statement that will change the CSS file based on what time of day it is. I also included a manual override controls in javascript to show the different CSS styles, so that you don’t have to wait all day to see the different scenes.
I am also using PHP to get the current year and current domain name and displaying them in the footer of the page. This website features a login page, a favorite website links page that get links from a MySQL database and displays those websites links.
Click here to goto PHP Time Changing CSS website