cooldaddy said:
Im looking for some CGI code to find out how many hours have past since
a file has been created or has been modified. Hope you guys/gals can
help me.
What makes you think the mechanism to look at file attibutes would be
different in a CGI environment? (I suspect you may be having difficulty
partitioning your problem).
The Perl -M operator tells you time (in days) from the last modified
time of a file to the start of script execution.
On Unix the -C operator does the same for the inode change time. There's
no concept of creation date in POSIX and if you are using a filesystem
with this concept you'll need filesystem dependant ioctl()s or external
binaries.
I think on Windows with NTFS -C will look at the creation date.