I am building my own file management system with the ideas below:

File Management System ----------------------- Admin file upload manager > Allow any files to be uploaded > Upload form has pulldown of registered users (pulldown associated wi +th a database) >> One file can be uploaded at a time and will be uploaded to the user +'s folder as chosen above ^ Member file manager > Login which redirects to specific folder (cookie authentication) > They are brought to another script which scans all files in their di +rectory and: >> Puts them all into a hash/array by given file type >> Records the file name, the date it was uploaded and file size >> The script prints these out on the screen in order by given file ty +pe and date (newest date on top). These will be links to the particu +lar file so they can download any file they want. Example: It would print all images on top, then say zip files, then text, etc. + Each category would be setup in chronological order.
Now, I can do almost all of this with scripts I already wrote. I have a file upload script I've written along with many login scripts.

The question I have is, how do I do the file reading so it slurps up all file names and file data in their folder?

Thanks.


In reply to file management system by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.