Read Local Directory and List Files in PHP

preview_player
Показать описание
In this video we'll learn how to read files from the local directory and list them using PHP.

Upgrade your Clever Techie learning experience:

Download this video's files here:

``````````````````````````````````````````````````````````````````````````````````````````````





``````````````````````````````````````````````````````````````````````````````````````````````
Рекомендации по теме
Комментарии
Автор

Let me just point put a potential bug here:
closedir has to be inside the body of the "if" statement in case the provided localdirectory name is wrong or trying to read from it fails for some reason.
Thanks for the video.

your_utube
Автор

There are different methods, to scan and list a DIR but, witch is the fastes in a big directory?

Alex_Eicher
Автор

try this one Techie=>
$names = array_map(fn($user) => $user -> name, $users); or this => fn(params) => expression

n-doc
Автор

Hi there! It's very well explained. Good Job! What IDE do you use in this video, and which is the Theme of the IDE. What extension do you use to show u as comments what does a function or so?

abelsedgarsebastian
Автор

I made an application in which you can upload an image. The name of the imagefile is stored in a mySQL table, along with other info of a user. If the record of that user will be deleted, his imagefile is still in an images-directory. Is there a way to delete such an "orphan-file", for example with the functions mentioned in this (great btw) video? In the past I used "Blob" to store images in a database-table but somehow it doesn't work anymore. Thanks for your excellent video!

jeffreyjansen
Автор

Nice tutorial. how about accessing that file? on page not only read.

nocturnalrules
Автор

Nice tutorial

Please Clever Techie, help for a PHP script that reads script from a remote FTP Server to my server

Urgently needed

saltech
Автор

Sir, Knowing is one thing but teaching is very difficult. You have a cult in that area. In the future if possible please make a video on the database back: export and import programmatically through PHP. Thank you for all the great videos.

Kodeispoetry
Автор

Thanks a lot, was searching for this kind of tutorial for very long time.

What if I want it to be clickable and access the folder 📁 and open file 🗃️.

How can I do this kind of thing. Kindly help .

ifraz
Автор

Thanks a lot man, you really helped me :)

alimodz
Автор

Will this work on Server? This works on Localhost but not sure if it will work on live online server?

bsamual
Автор

Great tutorial. Thanks... what are the extensions u r using for php in vs code? is there a live php server like brackets?

nonchalant