Securely Storing PHP Configuration Settings

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Learn how to securely store configuration settings in a PHP application, using best practices.
    Please consider supporting my channel:
    ☕ ko-fi.com/davehollingworth
    Code shown in the video:
    ‣ gist.github.com/daveh/9e2f2a8...
    Links shown in the video:
    ‣ www.12factor.net/config
    ‣ github.com/vlucas/phpdotenv
    Gear icons created by Freepik - Flaticon
    ‣ www.flaticon.com/free-icons/gear
    00:00 Introduction
    00:18 Hardcoded credentials
    01:06 PHP constants
    02:02 PHP array
    03:00 INI file
    03:50 JSON and YAML
    04:10 Environment variables
    05:02 .env file
    05:20 phpdotenv
    06:14 Ignoring .env
    06:55 Summary
    #PHP #security #configuracion
  • НаукаНаука

Комментарии • 44

  • @dave-hollingworth
    @dave-hollingworth  11 месяцев назад +5

    If there's another topic you'd like to see me cover, please let me know!

    • @ademineshat
      @ademineshat 11 месяцев назад +3

      I think you're going in the right direction with these tutorials. These topic's are most wanted, other RUclips tutorials teaching just Basics which are good but not enough. Thank you

    • @efbYouTube
      @efbYouTube 11 месяцев назад +2

      is the laravel framework something u use (& recommend)? i saw it placed quite high on the stackoverflow survey this year & last. txs again (& again & again 😊) for these great vids!

    • @ademineshat
      @ademineshat 11 месяцев назад +2

      @@efbRUclips Laravel is Great but for larger projects maybe. I always like to create something my own and enjoy it ☺️

    • @dave-hollingworth
      @dave-hollingworth  11 месяцев назад +1

      @@ademineshat Agreed - @efbolton3429 I will be doing some Laravel videos at some point, yes!

    • @NedumEze
      @NedumEze 11 месяцев назад +1

      Yeah!
      Again, please, could you try to deal with web apps' and sites' scalability? Things for or against scalability, and the hows. Please.

  • @vijaykoogu3822
    @vijaykoogu3822 11 месяцев назад +3

    Hi @dave-hollingworth please dont stop uploading new videos. Thanks alot.

  • @viralstation
    @viralstation 11 месяцев назад +5

    Welcome back sir! Love your content as always. Can you please make a whole project and go with each step explaining from DB design to front & backend and finally publishing? Thanks

  • @tempMahad
    @tempMahad 8 месяцев назад

    Can you imagine that this is the exact video i wanted!
    You are just adding more value to me.

  • @batchrocketproject4720
    @batchrocketproject4720 11 месяцев назад

    Really useful, clear, and to the point. Thanks. 💯

  • @sakmaestro3852
    @sakmaestro3852 9 месяцев назад

    You really explained well...

  • @someutubchannel69
    @someutubchannel69 11 месяцев назад +2

    As always a wonderful video.
    I have 2 of your Udemy courses...
    They are the best I have experienced from Udemy
    I highly recommend your courses

  • @abdelhamidnehlil7277
    @abdelhamidnehlil7277 11 месяцев назад +1

    très intéressant, merci!

  • @cursosdecodeigniter2857
    @cursosdecodeigniter2857 11 месяцев назад +1

    Very good!

  • @ArifBasri
    @ArifBasri 11 месяцев назад +1

    thank you!

  • @eliasagustin2
    @eliasagustin2 6 месяцев назад +1

    Thanks!

  • @MuhamadSurchy
    @MuhamadSurchy 9 месяцев назад

    Thanks for sharing all those very useful information , but sir can you create a video on php source code Encrypting please

  • @PGTuber
    @PGTuber 9 месяцев назад

    ❤❤❤

  • @mnamihas
    @mnamihas 11 месяцев назад +1

  • @sakmaestro3852
    @sakmaestro3852 9 месяцев назад

    Do u have a symfony tutorial or course?

  • @Big_Dot_Inc
    @Big_Dot_Inc 11 месяцев назад

    Hi. I am struggling to understand how search box autocomplete works on an website .Do i have to create a huge library with words in a folder somwehere in php ?

    • @dave-hollingworth
      @dave-hollingworth  11 месяцев назад +1

      It's typically a database search as opposed to a folder with files in it - the browser sends a request to the web server and this matches the search term to values in a database column and returns a response

    • @Big_Dot_Inc
      @Big_Dot_Inc 11 месяцев назад +1

      @@dave-hollingworth Talking about a topic ,how about if you can do a topic we descuse earlier?

  • @UIRETU
    @UIRETU 9 месяцев назад

    Hello dear author plz show hot to create ajax product filter with url in route for sending product to smb thx

  • @NedumEze
    @NedumEze 11 месяцев назад

    But, Dave, you also know that the PHP.env cannot be used in Production, or can it? If so, how please?

    • @dave-hollingworth
      @dave-hollingworth  11 месяцев назад

      Yes it can - if you have a "traditional" host, then you just make a .env file on your production server, with the production values. If you're using something like Heroku, then you can define environment variables in the admin panel.

    • @kelechichiemeka6292
      @kelechichiemeka6292 Месяц назад

      Wont it be accessible via the url?

    • @NedumEze
      @NedumEze Месяц назад

      @@kelechichiemeka6292
      Not securely.

    • @dave-hollingworth
      @dave-hollingworth  Месяц назад

      The .env file is typically placed outside of the web root, do it shouldn't be accessible in a browser

    • @NedumEze
      @NedumEze Месяц назад

      @@dave-hollingworth
      Thanks Dave. You've been such great help and friend for a long time.
      Because I couldn't figure out how to securely and robustly use the .env approach, I resorted to using includes from outside the root. There, it's not easy to access.
      But, some day, I am hoping that you will redo the .env approach with Production environment in focus. The previous video was in the Development environment.
      Looking forward, Dave.