Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Guys,
I have file "header.jpg" in an images folder
I have 5 other "header.jpg" images in different folders. Dependant on the time of day, i want the original to be replaced with one of the others and for this to rotate each day.
And.....Go.
|
adiohead
Member
Registered: 28th Sep 01
User status: Offline
|
http://www.codingforums.com/archive/index.php/t-3028.html
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Can't use that unfortunately as the cms i'm using needs every file name in an xml, I literally need to copy the file to the directory and replace the one that is there, and for that to cycle throughout the day.
I can do it using a batch script on the time sync but wondered if there was a better way to do it.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Chron job, probably the easiest way of doing it.
Not possible to point the CMS to use a php file instead (could set it up so PHP parses XML extentions)? As you could obviously change the headers to output it as an XML file (CMS wouldn't know the difference) and would mean then you could generate the file name accordingly.
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Bingo Dom,
|