Working With File System In PHP - Full PHP 8 Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 86

  • @JohnnyBigodes
    @JohnnyBigodes 3 ปีที่แล้ว +22

    This series is really good for the people that want learn the basics of PHP before going deep into a framework.
    I dont really need it, but this is a big help to other people.
    Thank you

    • @ProgramWithGio
      @ProgramWithGio  3 ปีที่แล้ว +10

      Thank you. That's the idea to introduce devs to PHP the proper way before going into frameworks. The first section of the course is for beginners. The second & third sections will be for more advanced devs so that might be something you'll find more interesting. The other sections will be OOP-focused & will include things like design patterns, security, performance, testing etc

    • @JohnnyBigodes
      @JohnnyBigodes 3 ปีที่แล้ว +11

      @@ProgramWithGio Dont get me wrong... I am still seeing your videos, even after almost 20 years using PHP. I like your style of teaching and I wished I had something like this 20 years ago. Really nice...

    • @ProgramWithGio
      @ProgramWithGio  3 ปีที่แล้ว +4

      @@JohnnyBigodes Thank you 🙌

    • @laravelisbullschitt3281
      @laravelisbullschitt3281 2 ปีที่แล้ว

      @@JohnnyBigodes Do you remember webmonkey?

    • @lotfiholmes6397
      @lotfiholmes6397 2 ปีที่แล้ว +1

      "I dont really need it, but this is a big help to other people." 🤣
      People are weird sometimes lol

  • @MaziarHeidari-i4e
    @MaziarHeidari-i4e ปีที่แล้ว +2

    Thansk you so much. Ive had watched some other courses about php like bro code. Your course is much more complicated. Its harder to understsnd and for me as a person who has never done a serious job in php in some how hard to understsnd how can i use this knowledge in real world and for example in a company . I feel like i know nothing !!!!

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว

      Sorry to hear that. It can seem overwhelming but we put it all in practice later by building a real world project. It seems harder because I go in detail & in depth explaining concepts while some other courses only cover the surface which may seem easier at first. Do what is best for your learning style, if this course does not work for you try another, thankfully TH-cam is full of free content

    • @MaziarHeidari-i4e
      @MaziarHeidari-i4e ปีที่แล้ว +1

      @@ProgramWithGio I think imma do my best to continue with your course. I'd like to master it. I like complexity . Thank you uvery much . I just need to know I'm going the right way . That's it

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว

      Feel free to ask questions along the way. Good luck

  • @faisalahammad
    @faisalahammad 11 หลายเดือนก่อน +2

    You're a fantastic teacher. Your delivery in this short video was excellent. 😮

  • @illegalsmirf
    @illegalsmirf 2 ปีที่แล้ว +2

    This is amazing. I was nowhere near the professional solution that you provided. I obviously have a lot of work to do!

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว +1

      That is perfectly normal, don't worry about it. Your solution doesn't have to be same as mine.

  • @batchrocketproject4720
    @batchrocketproject4720 5 หลายเดือนก่อน

    These overviews are really useful. I build php projects infrequently and often need quick revision if it's been a long time since my last php project and find a few minutes spent on your video for a topic saves me lots of time. Thanks.

    • @ProgramWithGio
      @ProgramWithGio  4 หลายเดือนก่อน

      Happy to hear, thank you

  • @udayan285
    @udayan285 6 หลายเดือนก่อน +1

    Thank you gio, I'm still learning from here.

  • @whisperscribe
    @whisperscribe ปีที่แล้ว +2

    Really amazing course, and I feel if you do this first section, a lot of other languages will get easier, I already found a lot of similarities with go, node and a lot other languages

  • @lairotuT-Tutorial
    @lairotuT-Tutorial หลายเดือนก่อน

    oh, I was too late with the comment on the last video :-) But really this video is again a masterpiece of tutorials. Best PHP-Tutor ever!

  • @Vitalii-m6r
    @Vitalii-m6r ปีที่แล้ว

    Yeah, it's pretty useful to know how to handle file system. Thanks!

  • @AlexFloppy
    @AlexFloppy ปีที่แล้ว +1

    Hello,
    Cool explanation of the files related methods.
    Thank you!
    Some thoughts - maybe we need some video about SplFileInfo class - it useful with files.
    But yes, it's already OOP section.

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว +1

      Hello, there are more videos related to file uploads later in the series 👍

  • @jewgienijbrzozowski8451
    @jewgienijbrzozowski8451 2 ปีที่แล้ว +1

    Another banger from GIO!

  • @asmotovlogs228
    @asmotovlogs228 ปีที่แล้ว

    Amazing tutorial. This tutorial is very important for beginners.

  • @steelmantv
    @steelmantv ปีที่แล้ว

    This course is awesome! Thank you

  • @aryank8695
    @aryank8695 2 ปีที่แล้ว

    Hi Gio, I would suggest you to also create videos on PHP Streams and stream related functions. There are so many concepts in there to know and understand. Thanks for your amazing video lessons!!

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว +1

      Thanks for the suggestions 💙

  • @emekatimothyiloba699
    @emekatimothyiloba699 ปีที่แล้ว

    Giooooo you are good. More grace

  • @lucassimas1019
    @lucassimas1019 3 หลายเดือนก่อน

    you´re awesome, man!

  • @invgreat5608
    @invgreat5608 2 ปีที่แล้ว +1

    Love you!

  • @karam0101
    @karam0101 2 ปีที่แล้ว

    Another gem ❤

  • @ilya_123__
    @ilya_123__ ปีที่แล้ว

    thank you!

  • @delisandor5337
    @delisandor5337 ปีที่แล้ว

    awesome tutorial

  • @goal_post24
    @goal_post24 3 ปีที่แล้ว +1

    great job sir

  • @mortezashabanipour6597
    @mortezashabanipour6597 2 ปีที่แล้ว

    Great video, thank you

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 2 ปีที่แล้ว

    Thank you sir

  • @memack101
    @memack101 2 ปีที่แล้ว

    Thank you.

  • @bigorstojanov184
    @bigorstojanov184 ปีที่แล้ว

    Great course, Gio. kudos. However, one thing that is kind of very annoying is the audio jump cuts. Everything feels rushed when there is no pause between sentences .

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว

      That was editing mistake I made early on. Gets better later

  • @CarlosOrtiz-sz2pp
    @CarlosOrtiz-sz2pp 2 ปีที่แล้ว

    Excellent

  • @mimoh2000
    @mimoh2000 2 ปีที่แล้ว

    @Gio, have been following from the scratch. Please what are the major differences between
    the fgets() and file_get_contents().

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว +2

      fgets gets a line while the get contents gets the entire file content

  • @jimmymomoh
    @jimmymomoh 2 ปีที่แล้ว

    Hello Sir, am really grateful for this series, I have been following the course from the begining and don't even want to miss a single video, meanwhile, I get stuck when i tried to make directory on the mac osx am using. this is the error am getting (Warning: mkdir(): Permission denied in /Applications/XAMPP/xamppfiles/htdocs/phpbootcamp/index.php on line 26).
    Please help. Thank you.

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      Hey, looks like a permission issue. I don't use mac os so I'm not sure what would be the proper solution. You can try updating the file permissions on the htdocs/phpbootcamp. Google would be your friend in this case, try googling "mac os xampp permission issue", this is the first result I got: stackoverflow.com/questions/9046977/xampp-permissions-on-mac-os-x see if it will help

    • @jimmymomoh
      @jimmymomoh 2 ปีที่แล้ว

      @@ProgramWithGio Thank you so much sir. am really grateful, now my folder is working fine, and that was so fast as in how you were able to reply so fast. I was hoping you would reply by next week or so. Thank you really appreciate.

    • @jimmymomoh
      @jimmymomoh 2 ปีที่แล้ว

      Although I wish to get a transcript for the previous video on htaccess, I couldn't follow it at all

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      @@jimmymomoh Any specific issue? TH-cam adds subtitles automatically but sometimes it does not work. Feel free to DM me on Twitter and I can help troubleshoot

  • @MaziarHeidari-i4e
    @MaziarHeidari-i4e ปีที่แล้ว

    In the 6th min on line 13, I tried to write to while condition just by frets function itself, without assigning it to $line .
    Actually it works . But I'm loosing some lines of my file compared with the way you do it. And I don't know why. Do you have any idea?

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว

      If you dont assign to line then how are you getting the row from the file? fgets simply reads the line & advances the pointer to the next row, so I'm not sure what you are trying to do. If you want to read the file line by line & do something with each line you need to assign it to a variable, maybe you are doing that inside the loop, without seeing your code I can't guess

    • @MaziarHeidari-i4e
      @MaziarHeidari-i4e ปีที่แล้ว

      @@ProgramWithGio thanks gio

  • @yarik83men51
    @yarik83men51 3 ปีที่แล้ว

    Super

  • @lairotuT-Tutorial
    @lairotuT-Tutorial 11 วันที่ผ่านมา

    I just realized that this video might or might not be the mentioned coming up video for the special data type resource from lesson 1.4 Data Types
    What I am indeed missing is the content for typehinting and typecasting. As far as I experianced direct typehinting is still not possible for resource. Options I found are:
    1. Wrapping the resource into a class and typehint the class,
    2. Using \SplFileObject to creat an object of the class SplFileObject and typhint \SplFileObject - that is similar to 1.
    3. Using curl instead of fopen(),...
    4. Typehinting mixed and verifying resource data type by is_resource()
    I indeed would like to have the best option for the PHP aim to transfer resource data type to objects but indeed I am bad in understanding what this will look like. Should I really consider the usage of fopen() deprecated already at this stage (PHP8.1)?

    • @lairotuT-Tutorial
      @lairotuT-Tutorial 10 วันที่ผ่านมา

      the more I read into this topic, the more I wonder if my second option SplFileObject together with SplFileInfo might be the way to go since PHP 8.0 would you agree? It would be great to have a tutorial on that from you as this seems to be a big topic with many possibilities. It seems more complex but seems to be the way for future PHP projects. Is there something in progress? Maybe inside your laravel series?

    • @ProgramWithGio
      @ProgramWithGio  6 วันที่ผ่านมา

      Yea I think SplFileObject is what you might be looking for. I think resource type declarations might be coming at some point in PHP's future releases, maybe PHP 9?

    • @lairotuT-Tutorial
      @lairotuT-Tutorial 5 วันที่ผ่านมา

      @@ProgramWithGio will there be a SplFileObject lesson on your Channel soon?

  • @sym2574
    @sym2574 ปีที่แล้ว

    greeeeeaaattttt

  • @yinonelbaz5309
    @yinonelbaz5309 2 ปีที่แล้ว

    😍😍😍😍😍😍😍

  • @jessieren6476
    @jessieren6476 3 ปีที่แล้ว

    AWESOME :D

  • @MochilasWayuuBags
    @MochilasWayuuBags 10 หลายเดือนก่อน

    im getting a number instead of a string for each line

    • @MochilasWayuuBags
      @MochilasWayuuBags 10 หลายเดือนก่อน

      If i var_dump($line) inside the while loop i get a boolean

    • @ProgramWithGio
      @ProgramWithGio  10 หลายเดือนก่อน

      @@MochilasWayuuBags can you share your code on GitHub?

  • @bettyrizzo6167
    @bettyrizzo6167 2 ปีที่แล้ว

    worst

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      ?? Could you maybe elaborate on what is worst & why?

    • @watchernode6138
      @watchernode6138 ปีที่แล้ว +2

      @@ProgramWithGio I think it's a troll, just ignore