Results 1 to 3 of 3

Thread: How to write a PHP coding to list out all files and directories as links to them?

  1. #1
    Join Date
    Mar 2012
    Location
    Gardena,California,USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to write a PHP coding to list out all files and directories as links to them?

    How to write a PHP coding to list out all files and directories as links to them?

    This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after it is being refreshed. (prefer in alphabatical order)

    How to achieve this sort of functionality in PHP? Please provide sample coding as well. (and any references)

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    There are tons of these around, here's one:

    http://css-tricks.com/snippets/php/d...tory-contents/

    We modified it to make it better here:

    http://www.dynamicdrive.com/forums/s...ad.php?t=67518

    But as I say there're tons of these things around. Google:

    PHP code for folder contents

    for more choices.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2012
    Location
    Gardena,California,USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, John!
    Very useful information. I 'll learn it harder.

Bookmarks

Posting Permissions

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