11: Include and Require in PHP | Procedural PHP Tutorial For Beginners | PHP Tutorial | mmtuts

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

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

  • @draketown2714
    @draketown2714 4 года назад +4

    Did not know i could include headers like this... mind blown, had IT class the whole last year and i always just copy pasted it in instead of doing this... omg this is so much cleaner thanku

  • @pbznt
    @pbznt 2 года назад +4

    I want to tell you that you are the best teacher on RUclips! I am studying programmation at school, but nothing compares to an in-depth tutorial like you do. Very well explained and well structured. Cheers from Quebec, Canada.

  • @Jir0u
    @Jir0u 2 года назад +3

    It is so rare to find tutorials like these! Im binge watching every part of your tutorials rn and trying to apply it while watching

  • @i.t.starters2019
    @i.t.starters2019 4 года назад +19

    Man I just wanna say thank you. You are the best. If you can continue with OOP I would really really appreciate it.

  • @QuietWind01
    @QuietWind01 2 года назад +3

    9:30 this right here will make building my sites so much easier, just this alone... I always find myself getting further into my projects, and remembering that now I have to go through 20 different pages to change a href to something, or add a button, or remove a button. Or change styling. This is so much better 🤣

  • @l3beast3
    @l3beast3 3 года назад +1

    ive been manually changing headers in each document for so long. this is game changing, thank you so much

  • @shikomatlala
    @shikomatlala 3 года назад

    I just started learning web development for my IT school project -- These are the most helpful tutorials ever...

  • @GelsYT
    @GelsYT 4 года назад

    I'll never forget your channel MMTUTS! YOU DESERVE A MILLION SUBS! This is the guy where I learn PHP!!!!!!!!!!

    • @GelsYT
      @GelsYT 4 года назад

      and SQL

  • @geneartista9714
    @geneartista9714 4 года назад +9

    Simply amazing, thanks for all these tutorials, you`re changing people`s lives man

  • @ApplicableProgramming
    @ApplicableProgramming 4 года назад +8

    Great to see you continue with the php :) (after you mentioned the changes)
    You actually inspired me to start making tutorials, one day I hope to be close to your level of teaching! :)

  • @MakurDuony
    @MakurDuony Год назад +1

    I love the presentation you have done, this is where i will learn web development.

  • @AdelinBonheur
    @AdelinBonheur 4 года назад +1

    You're helping us man for real. The best teacher I ever had.

  • @ovieiffie7800
    @ovieiffie7800 4 года назад +11

    When are you going to continue your Object Oriented PHP course? You said you were going to apply it to something practical, like a login system

  • @muhammadabbagana3067
    @muhammadabbagana3067 4 года назад +2

    Thank you sir I really love your classes I almost watch your entire RUclips videos 😂. However I am still waiting for your class on API I think it needs to be done.

  • @InactivePhoenix
    @InactivePhoenix 2 года назад +1

    I understand putting the tag into header.php for the sake of code reuse, but I'm having a hard time understanding how it would be appropriate to pull out the with the title and all the metadata. Surely that part of the file would still need to be unique for any given page of the site, particularly the title? You could maybe pass that information in with a function call, but to me that seems like replacing one form of boilerplate with another. Also, It kinda rubs me the wrong way having the opening and closing tags for in 2 separate files.

  • @elrobbo6
    @elrobbo6 4 года назад +1

    If people are just learning this for the first time it would have been good to mention that for the different meta tags and title and such, since it is a bad idea to have them the same on every page, you will want to create a variable for each one of those on each of the pages. And then in the file you include, in those locations, you would simply place that variable to fill out those fields dynamically based on the page it was on. Otherwise your whole site ends up with the same meta and title tags which is bad and Google will really not like it.

  • @delderoiste5307
    @delderoiste5307 4 года назад +1

    Hi. Have always enjoyed and followed your tutorials. Can I ask or maybe some fans here know? Have
    you made any tutorials on how to join two tables with the same common column id to make an SQL query and then output it in the browser using PHP & MySQL? Thank you for the time and effort you put into your channel.

  • @ericlau931210
    @ericlau931210 4 года назад +1

    I still remember when I still stucked on my university final year project and mmtuts guide really helped me alot to finish my project and study.
    Thank you so much,
    Love from Malaysia

  • @Alexifeu
    @Alexifeu Год назад +1

    Will he be Giga Chad at the end of the Series. Also that he goes to the gym AND still has power tomake a video afterwards is insane. :D I am already exhausted from doing absolutely nothing.

  • @synthesis44
    @synthesis44 4 года назад

    Can't wait to see laravel tutorials in this channel

  • @miss3773516
    @miss3773516 3 года назад

    Awesome! I’m going to share this link with my class

  • @sonoftheemperor5685
    @sonoftheemperor5685 4 года назад

    Out of left field question probably not related to the video but I’ve always wanted to learn how to make games like the old global warfare and kingdoms of Camelot. Got a video you recommended to start this process

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

    What is the best practice to name these files? In this example you used index.PHP which includes header.PHP. I normally use index.PHP which includes header.HTML (because there is no php code in the header portion). Also this would work fine if used index.HTML to include either header.PHP or header.HTML. So what would be the recommended naming practice? Thanks

  • @priemaster3058
    @priemaster3058 2 года назад

    Hey man, thanks a lot for the good tutorial!
    The german vod are very bad about it, but yours was very good!

  • @romankunstler5187
    @romankunstler5187 4 года назад +1

    You're a very very good teacher 👍 could you go ahead with you're php project, so ting like profile or special pages for some users like admin page. This would be so great

  • @djpeshmoh
    @djpeshmoh Год назад +1

    Thanks for awesome lessons

    • @Dani_Krossing
      @Dani_Krossing  Год назад

      I have a newer 2023 course on my channel, in case you are interested 🙂

  • @mykolazhabko3228
    @mykolazhabko3228 3 года назад

    Thanks for this tutorial! Clear explanation!

  • @janramilintong1187
    @janramilintong1187 4 года назад

    simple but understandable

  • @cb_sp5022
    @cb_sp5022 4 года назад

    i dont know what you sey but you still good to make videos congratulations 280k subs

  • @alsongadizo1692
    @alsongadizo1692 Год назад

    hi great video, it has really assisted me in learning php, however when i try to use the include statement for my header within the php tags it isn't executing, the code is plain white i am using visual studio and the file is index.html. Need some help

  • @DevlogBill
    @DevlogBill 2 года назад

    I am thinking along the lines of JavaScript since this is my first programming language. Can it be said that the include is a method or similar to a module similar to JavaScript? I am probably over thinking this, thank you.

  • @christianachleitner9439
    @christianachleitner9439 4 года назад

    Maaaaan. Made my day. Awsome you are back with a php tutorial! :)

  • @tasianafranchetti9640
    @tasianafranchetti9640 2 года назад

    This is awsome! Thank you so much for your tutorials :)

  • @pharaonex6770
    @pharaonex6770 4 года назад

    Thank you
    You made everything clear and easy !
    Appreciated! 🤗😉

  • @yotsusan_machi
    @yotsusan_machi 3 года назад

    dani krossing you are the best

  • @jeff-wo6mm
    @jeff-wo6mm 4 года назад

    Is this the end? I see #12 and #13 but the titles are not the same and #13 is a topic already discussed in #8. Please advise of the order of these courses, assuming that there is more after this one

  • @Muaaz-26
    @Muaaz-26 4 года назад

    Love u bro
    Your building my future❤❤

  • @romankunstler5187
    @romankunstler5187 4 года назад

    A video about using cookies, and redirect after login to a user specific website I would appreciate

  • @Adam-rn6lr
    @Adam-rn6lr 4 года назад

    Hi mmtuts, I would like to ask you how many years took you to learn PHP to this level ? Thank you for your answer

  • @aizazkhan2583
    @aizazkhan2583 4 года назад

    Hello....! sir when will you complete the PHP procedural tutorials plz tell me i just waiting for your 12 number video

  • @Letsallparty2
    @Letsallparty2 2 года назад

    Help! when I call my header from sub folders files, the links look for corresponding nav files in the sub folder giving me error.

  • @pascalmer88
    @pascalmer88 2 года назад

    My CSS won't work when I include_once my header on my index, any thoughts?

  • @sudharsanpaskaran
    @sudharsanpaskaran 3 года назад

    Thank you so much man

  • @piper28mudai
    @piper28mudai 4 года назад

    Hi... i have problem.. my index and my other php pages(sample page, header.php,footer.php) is on different folder. whenever i move to that sample page, the require or include is break.. it cant load the header page require/include statement
    how can i solve the problem ?

  • @muhammadasif8994
    @muhammadasif8994 4 года назад

    Can you please make video on reducing file size while uploading in php i have done to reduce image size but unable to reduce pdf and video

  • @amorsemlimite4427
    @amorsemlimite4427 4 года назад

    Thank you master

  • @yungifez
    @yungifez 4 года назад

    Best teacher ever
    Yay I was 4th to comment

  • @tegapraiz2765
    @tegapraiz2765 4 года назад

    Do ypu have a course on phyton if ypu do please share the link

  • @micomc
    @micomc 4 года назад

    How to include .html into .html without server, just client side in 2020?

  • @tomasloparnik9256
    @tomasloparnik9256 4 года назад

    Quick question, On the login tutorial i got a wierd error (unexpexted 'else') Could you help me with that?

    • @MrJumpingmaniac
      @MrJumpingmaniac 3 года назад

      Maybe missing a ";" after the preceding statement.

  • @justdewmina
    @justdewmina 2 года назад

    Putting across nicely! Sometimes you look like Elon Musk!

  • @mariamzayed91
    @mariamzayed91 4 года назад

    thank uuuu

  • @yar0607
    @yar0607 2 года назад

    1:53
    You know "Link to the past" )))

  • @hadireg
    @hadireg 4 года назад

    👍👍❤

  • @Julio860JVL
    @Julio860JVL 4 года назад

    For some reason this video is twice in the playlist together with video # 10.
    There is a total of 13 videos but # 10 and # 11 are twice in the playlist.

    • @Julio860JVL
      @Julio860JVL 4 года назад

      Link to playlist
      ruclips.net/p/PL0eyrZgxdwhxhsuT_QAqfi-NNVAlV4WIP

  • @purnamansinghrai3699
    @purnamansinghrai3699 Год назад

    You'd better show this teaching in a text editor using computer keyboard!

  • @1733pako
    @1733pako 3 года назад +1

    Where is the ‘love’ button when you need it?!!!

  • @atomkedi3439
    @atomkedi3439 3 года назад

    Hello friends, how to find php?id on any site

  • @priyapriya8238
    @priyapriya8238 4 года назад

    Hello, sir how to upload two image using HTML code (not insert)? upload this type of video sir.please upload fast

  • @ahmedsunil3235
    @ahmedsunil3235 4 года назад

    why the video is repeated?

  • @AndreGomesFilms
    @AndreGomesFilms 4 года назад

    First

    • @d-o-n-u-t
      @d-o-n-u-t 4 года назад +1

      congratulations. have your trophy. wow.

  • @kabhikachambala3392
    @kabhikachambala3392 3 года назад

    I'm jelous . I woukd like to be you

  • @BloodyClash
    @BloodyClash 4 года назад

    Don't agree with all your ways in all videos...but at least you're not trying to overcomplicating stuff by trying to use javascript for things php is born for. 😫keep spreading phpppppppp

  • @aizazkhan2583
    @aizazkhan2583 4 года назад

    Hello....! sir when will you complete the PHP procedural tutorials plz tell me i just waiting for your 12 number video