Read Local Directory and List Files in PHP
Vložit
- čas přidán 4. 08. 2024
- 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:
/ clevertechie
Download this video's files here:
/ read-files-from-37859304
``````````````````````````````````````````````````````````````````````````````````````````````
( Website ) clevertechie.com - PHP, JavaScript, Wordpress, CSS, and HTML tutorials in video and text format with cool looking graphics and diagrams.
( CZcams Channel ) / clevertechietube
( Facebook ) / clevertechie
( Twitter ) / theclevertechie
`````````````````````````````````````````````````````````````````````````````````````````````` - Jak na to + styl
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.
Thanks a lot man, you really helped me :)
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.
Great tutorial. Thanks... what are the extensions u r using for php in vs code? is there a live php server like brackets?
Love the first way
much love
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!
There are different methods, to scan and list a DIR but, witch is the fastes in a big directory?
Thank you sir
Nice tutorial. how about accessing that file? on page not only read.
what is your visual studio code theme
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?
I'm using Visual Studio Code with Material Theme
Will this work on Server? This works on Localhost but not sure if it will work on live online server?
❤️
try this one Techie=>
$names = array_map(fn($user) => $user -> name, $users); or this => fn(params) => expression
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 .
Nice tutorial
Please Clever Techie, help for a PHP script that reads script from a remote FTP Server to my server
Urgently needed
r/clevertechie