logo
Previous Thread
Next Thread
Print Thread
Joined: Sep 2010
Posts: 50
B
berryk Offline OP
Amoeba
OP Offline
Amoeba
B
Joined: Sep 2010
Posts: 50
Hi All; 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) Thanks.

Sponsored Post Advertisement
Joined: Apr 2021
Posts: 84
Likes: 3
R
Amoeba
Offline
Amoeba
R
Joined: Apr 2021
Posts: 84
Likes: 3
you can esay and simply get list of file in folder in php. The scandir() function in PHP is an inbuilt function which is used to return an array of files and directories of the specified directory. The scandir() function lists the files and directories which are present inside a specified path.


Link Copied to Clipboard
Brand New Posts
Psalm for the day
by Angie - 02/07/23 09:18 AM
2023 - on this day in the past . . .
by Mona - Astronomy - 02/07/23 06:34 AM
Inspiration Quote
by Angie - 02/05/23 07:22 PM
Groundhog Day
by Angie - 02/05/23 07:20 PM
Astro Women - Birthdays
by Mona - Astronomy - 02/04/23 08:42 AM
Finish Fraying Fabric Edges
by Cheryl - Sewing Editor - 02/01/23 04:22 PM
Simple Sewing Ideas for Tidying-Up
by Cheryl - Sewing Editor - 02/01/23 04:21 PM
Astronauts - in Memoriam
by Mona - Astronomy - 02/01/23 09:06 AM
Astro Advent 2022 - *new articles*
by Mona - Astronomy - 01/29/23 08:53 AM
Review Illustrator Basics The Shape Builder Tool
by Digital Art and Animation - 01/26/23 04:07 PM
Sponsor
Safety
We take forum safety very seriously here at BellaOnline. Please be sure to read through our Forum Guidelines. Let us know if you have any questions or comments!
Privacy
This forum uses cookies to ensure smooth navigation from page to page of a thread. If you choose to register and provide your email, that email is solely used to get your password to you and updates on any topics you choose to watch. Nothing else. Ask with any questions!


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2022 Minerva WebWorks LLC. All rights reserved.


Powered by UBB.threads™ PHP Forum Software 7.7.5