Closed Thread Icon

Topic awaiting preservation: Uploading Files (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic awaiting preservation: Uploading Files (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Uploading Files <span class="small">(Page 1 of 1)</span>\

Maniac (V) Mad Scientist

From: Long Island, NY
Insane since: Jun 2000

posted posted 05-02-2002 00:45

Using Perl and CGI, I was asked to create a script to upload different files for some E/N website. The webmaster was pretty happy with it but he wants to know if I could create another file, again using Perl & CGI, to display all the uploaded information. He wants it to display the file name, file type, uploader, size, date, and time it was uploaded.

Although it's a freebie and he told me not to stress over it, it kind of bothers me that I can't write this script. Does anyone know how I would go about displaying this uploaded information? Any help is always much appreciated.

Thanks in advance


Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-02-2002 01:02

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 05-02-2002 01:06

some of this stuff you can get to easily using the perl stat function. And or reading the directory (to get stuff like the file's name)

Some of this stuff though you are going to have to record somwhere. For example if by uploader you mean the user who uploaded it then you will have to store that in a txt file somewhere (cgi scripts are all run by the default webuser so this data isn't recorded in the filesystem). Easiest way to do this is probably create a text file that lives in the directory that saves some info and use the filesystem data for the rest.

.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone

Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-02-2002 07:37

Jestah, since Bitdamaged explained pretty much everything what you need to do, I'll just add the link to explanation of stat() function:

Maniac (V) Mad Scientist

From: Long Island, NY
Insane since: Jun 2000

posted posted 05-02-2002 19:31

This is great. Thanks alot guys, I appreciate it.


« BackwardsOnwards »

Show Forum Drop Down Menu