Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: Looking for PHP Script to Display Recently Uploaded Files

  1. #1
    Senior Member
    Join Date
    Jul 2004
    Posts
    104

    Looking for PHP Script to Display Recently Uploaded Files

    I am currently building a new website with PHP, and as part of uploading new articles I would like a script to display the most recently uploaded files in a folder in the form of a list (whether they be in a php, rss, html file, etc.) in a similar format:

    April 1, 2005
    Title of New Article

    March 1, 2005
    Another Article

    It would be extremely helpful instead of constantly updating a file with the newest article on a subject. I have thought about using a CMS to handle this, however I haven't found any to integrate into my site and I am far enough now I do not want to redesign (unless anyone knows of something simple that can be inserted in a php page).

    Am I asking for too much here? Thanks.

  2. #2
    Junior Member
    Join Date
    Jul 2004
    Posts
    19
    2 snippets below. Flow of code should be:
    1. open directory
    2. read through the directory to get files
    3. once you have the files you can get the file dates and open them and get at their contents.

    if($dh = opendir($dirDoc)) die("Cannot open $dirDoc");

    while ($file = readdir($dh))

    hope that helps,
    vark
    Web Design & Development, E-Commerce, Hosting & Consulting at www.thegilmancompany.com

Similar Threads

  1. mjtaylor pic uploaded
    By mjtaylor in forum Member Photos
    Replies: 5
    Last Post: 06-15-2007, 09:19 AM
  2. I just uploaded my new personal business web site.
    By BobbyBill in forum Submit Your Site For Review
    Replies: 19
    Last Post: 02-13-2007, 10:25 PM
  3. Just uploaded a new look for my employer's site.
    By WebMasterKrames in forum Submit Your Site For Review
    Replies: 1
    Last Post: 05-19-2006, 08:56 PM
  4. help! Resize uploaded images with perl?
    By bebarrett in forum Web Programming Discussion Forum
    Replies: 2
    Last Post: 09-08-2004, 08:06 AM
  5. How: PHP script outputs multiple files?
    By z01d in forum Web Programming Discussion Forum
    Replies: 4
    Last Post: 02-12-2004, 07:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •