Results 1 to 2 of 2

Thread: Looking for some php code

  1. #1
    Join Date
    Feb 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looking for some php code

    Just looking for a code snippet to get me started. I've found a few examples but none of them are in depth enough for what I need.

    I need to have an hourly content rotation.

    Like

    6:00a to 9:00a CST load page1.html
    9:00a to 11:00a CST load page2.html

    etc.

    Any ideas?

  2. #2
    Join Date
    Feb 2006
    Posts
    13
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    You can use the date function:
    PHP Code:
    $date date("H:i");
    if(
    $date == "06:00"){
    include(
    "page1.html");
    }elseif(
    $date == "09:00"){
    include(
    "page2.html");

    Tutorial - date function
    Last edited by Pixelcode; 02-08-2006 at 07:19 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •