PDA

View Full Version : New! is really Modified!


jbroder
02-07-2000, 12:18 AM
I wrote a script that tests files for last modified date and prints new! next to the file's link on the main page if the last mod date is less than 10 days.

This is fine for new files, but when I make any change to a file it will say "new!" when really it is just modified.

I datestamp my files
<!-- Jan 02 2000 -->
but I think there will be too much of a performance hit to
open each file and check the datestamp.

Anybody have a better way to get this done?

Thanks,
Jon


------------------
guitartricks.com

pier
02-07-2000, 03:10 PM
I dunno if this can help you, it's not exactly what you
want, but it might be easily modified:

http://www.weirdpier.com/?whatsnew

Pier
[ C-source available ]

jbroder
02-07-2000, 07:20 PM
Pier,
Thanks for the offer. That looks like a good solution.
Unfortunately, it doesn't look like it will get me out of
my problem.

I already have a script that tests what files were recently modified . I am hoping someone knows how to make one that tests what files were recently added.

If anybody can help, please let me know....

Maybe I need to write a log file when files are created or something?

Jon