Script for rotating daily quote

Discussion in 'Programming' started by Achievable, Oct 26, 2008.

  1. #1
    I need an easy to understand script so that webpage automatically changes the daily quote. Is that possible ?
     
    Achievable, Oct 26, 2008 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Manually updating or fetching from some site ?
     
    Bohra, Oct 26, 2008 IP
  3. Achievable

    Achievable Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have the quotes ( as in inspirational quote of the week) and want it changed randomly every day . At the moment i have to do it all manually and wondered if there was someway of it happening automaticaly
     
    Achievable, Oct 26, 2008 IP
  4. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #4
    You can try to setup a daily cron to change the quote.

    Just store the quotes in a file and get one line randomly (using tail if you are on unix) :)
     
    jitendraag, Oct 26, 2008 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
  6. Achievable

    Achievable Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    perfect - thank you
     
    Achievable, Oct 26, 2008 IP