Jump to content


This topic is now archived and is closed to further replies.


Using PHP to create an unordered list of the contents in a folder

Recommended Posts

I have a folder on my server that I store a bunch of junk in. You can see it here:


Now, I certainly like having a big bin of objects on my server, the only problem is I see the basic styling that the Apache server throws my way when I view the page. My question is this; is there any way I can create an index.php file that will scan all the objects in the folder and put them into an unordered list so that I can style the page using a little CSS, just so I can make the type bigger and a bit more legible? Any help would be great, thanks guys!

Share this post

Link to post
Share on other sites
I'm sure you can go through and write your own if you want, but I did a quick Google search and this is what came up:

Otherwise you can create your own directory listing and apply the styling you want:

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.