corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Need a way to perform simple task


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Need a way to perform simple task
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
28th Jan 10 at 12:05   View User's Profile U2U Member Reply With Quote

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
28th Jan 10 at 12:39   View User's Profile U2U Member Reply With Quote

http://www.codingforums.com/archive/index.php/t-3028.html
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
28th Jan 10 at 13:28   View User's Profile U2U Member Reply With Quote

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
28th Jan 10 at 14:05   View User's Profile U2U Member Reply With Quote

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
28th Jan 10 at 14:58   View User's Profile U2U Member Reply With Quote

Bingo Dom,

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Want a service & MOT at vauxhall but dont fit on the ramps, anyone else had this prob??? Fear General Chat 12 218
17th Sep 03 at 22:50
by DaveC
 
Computer memory online? Tiger General Chat 16 444
16th Mar 05 at 19:58
by DAYZEE
 
South East Monthly Meet - 5th of November - Grasshopper Inn (Thank to everyone that turned up ) jr South East 227 5590
6th Nov 06 at 15:47
by JM_16v
 

Corsa Sport » Message Board » Off Day » Geek Day » Need a way to perform simple task 29 database queries in 0.0072691 seconds