[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] Web CGI / HTML Question



On Wed, 20 Jan 1999 ryan.pardey@nospam.db.com wrote:

: I am working on a web site and one of the tasks I have to do is load the
: latest 10 files from a directory into links
: on a web page - the latest obviously being determined by the timestamp for
: the files (by the way, these are pdf files).
: 
: Just as a broad question, would Perl be best for this? Or is it easier and
: possible using dynamic html?

Do the presentation with whichever you prefer. The tricky part is
keeping track of the 10 most recent files. You could use CGI to serve
each page and record the access, or find some other way to hook into
page acceses (I'd be interested to hear such of a method).

On another topic, what would be the hit frequency on your site? If it is
high, the 10 most recent files would be as useless as a random list. If
you want some ideas on how to do this properly, have a look at
http://everything.slashdot.org/

Ryan Heise                             http://www.progsoc.uts.edu.au/~rheise/
=============================================================================
main(){printf("%d != %d, why?\n", sizeof('"')["'"],(sizeof('"'))["]\"\0["]);}
=============================================================================

--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>