|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Pic of the Day Archive
I am developing a site for Alta and we maintain a pic of the day and a pic of the day archive. How would I go about automating the page development of the archive so that it shows only the previous 30 days worth of pictures based on filename(by date ie...05-22-04.jpg). Thanks in advance for any and all replies.
|
|
#2
|
||||
|
||||
|
Basic pseudo code:
Get the current date - minus 30 days Create a file system object - load up your archives directory listing into an array Loop through the array, displaying all filenames larger than 30 days ago |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Pic of the Day Archive |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|