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: 72
Likes: 2
R
Amoeba
Offline
Amoeba
R
Joined: Apr 2021
Posts: 72
Likes: 2
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
2021: On this day . . .
by Mona - Astronomy - 06/22/21 06:12 PM
Meditation and Tea Drinking
by mary-tea1 - 06/22/21 02:05 PM
Inspiration Quote
by Angie - 06/22/21 08:20 AM
Psalm for the day
by Angie - 06/22/21 08:01 AM
Celtic music is Folk music?
by Angie - 06/22/21 07:59 AM
The message from El Morya
by VestnikRA - 06/22/21 07:28 AM
What Era is Classic Rock
by Ravina - 06/22/21 01:04 AM
June 22nd - 27th Is Cinema Week
by Angela - Drama Movies - 06/21/21 08:30 PM
How do YOU Define Classical Music?
by Angie - 06/21/21 01:44 PM
What is a Biblical Worldview
by Angie - 06/19/21 07:05 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 © 2021 Minerva WebWorks LLC. All rights reserved.


Powered by UBB.threads™ PHP Forum Software 7.7.5