The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

randomizing php

ok...I'm not sure on how to do a search for this.
Basically what I am looking for is a way to create one page (example.php) and throughout the course of a day or a week or just on certain days (xmas, new years, valentines, etc) to change the content of the page (for this I would use ex1.php, ex2.php, ex3.php)

I think it would use a conditional statement- something along the lines of

if hour=morn/afternoon/evening
include ex2.php

(and/or)

if day=xxx
include ex1.php

I know that I've seen something similar using javascript where it would change the background depending on the hour of the day or the day of the week)