Page 1 of 1
24hr iterator
Posted: Tue Apr 17, 2007 8:22 pm
by yshaf13
hi can someone give me an example of a simple script that would change a picture every 24 hours?
Posted: Tue Apr 17, 2007 9:14 pm
by feyd
Use cron, icron or whatever scheduling system your environment supports.
re
Posted: Tue Apr 17, 2007 9:19 pm
by yshaf13
I'm writing this script for someone else and i don't know what his server supports, how can i do it just using php?
basically, I need to display that there was x amount of days and x amount of weeks since a target date and every day should be a new picture.
Posted: Wed Apr 18, 2007 1:20 am
by Chris Corbyn
Just update a record in a database, or even a flatfile, with the timestamp of the last change. Then when the page is requested, check if that timestamp is more than 24 hours old
