Read Local Directory and List Files in PHP

Sdílet
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

Komentáře • 19

  • @Kodeispoetry
    @Kodeispoetry Před 4 lety +3

    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.

  • @alimodz6253
    @alimodz6253 Před 3 lety +1

    Thanks a lot man, you really helped me :)

  • @your_utube
    @your_utube Před 3 lety +3

    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.

  • @nonchalant8473
    @nonchalant8473 Před 4 lety

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

  • @steventyler988
    @steventyler988 Před 3 lety

    Love the first way

  • @abdelhakim2548
    @abdelhakim2548 Před 2 lety

    much love

  • @jeffreyjansen
    @jeffreyjansen Před 2 lety

    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!

  • @Alex_Eicher
    @Alex_Eicher Před 4 lety +1

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

  • @n71-doc58
    @n71-doc58 Před 4 lety

    Thank you sir

  • @nocturnalrules
    @nocturnalrules Před 3 lety

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

  • @mattarthurclartun7081
    @mattarthurclartun7081 Před 3 lety +1

    what is your visual studio code theme

  • @abelsedgarsebastian9826

    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?

    • @clevertechie
      @clevertechie  Před rokem

      I'm using Visual Studio Code with Material Theme

  • @bsamual03
    @bsamual03 Před 3 lety

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

  • @Jesus-mu4ix
    @Jesus-mu4ix Před 4 lety

    ❤️

  • @n71-doc58
    @n71-doc58 Před 4 lety

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

  • @ifraz6
    @ifraz6 Před 2 lety

    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 .

  • @saltech2024
    @saltech2024 Před 3 lety

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

  • @fynnosullivan4278
    @fynnosullivan4278 Před 4 lety +1

    r/clevertechie