|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Multiple stage file move?
Greetings all.
I need is a script that will move a file from one known dir to another, then grab another file from a different dir to replace it, and have absolutely zero clue how to do this. Here's what I am trying to do: A web client wants his site header image to change based on US holidays. So, a script would grab the default header jpg, move it to a different dir somewhere on the site, then grab a header that has, say, a Christmas theme, and move that into the dir where the default one was. Make sense? I could then make a cron job that exe's the script based on known holiday dates. |
|
#2
|
|||
|
|||
|
I think that you're going about this the hard way. In the way you're suggesting you would need to write some sort of program to do this. It would read something (file, database, etc.) to determine which image to use. You would probably run this program right after midnight.
However, you should be able to use a dynamic web language (JSP, PHP, ASP, etc.) to do this all automatically for you. It would do something similar to what I described above but it would do it at request time. It would then serve the correct image directly without modifying anything in the file system.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Multiple stage file move? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|