PHP For Beginners | 3+ Hour Crash Course
Vložit
- čas přidán 6. 08. 2024
- Your first step in learning PHP. We will go over all of the fundamentals and create a small PHP/MySQL project.
⭐ Sponsor:
linode.com/traversy
💻 Github Repo:
github.com/bradtraversy/php-c...
💻 Download Xampp:
apachefriends.com
👇 PHP OOP MVC Udemy Course:
www.udemy.com/course/object-o...
💖 Show Support
Patreon: / traversymedia
PayPal: paypal.me/traversymedia
👇 Follow Me On Social Media:
Twitter: / traversymedia
Instagram: / traversymedia
Linkedin: / bradtraversy
Timestamps:
0:00 - Intro
0:59 - Linode Sponsor
1:40 - Slides
9:47 - Getting Setup With XAMPP
14:30 - Opening a PHP File
15:38 - VS Code Setup & Auto Reload
18:20 - Output Constructs & Functions
26:35 - Data Types & Variables
34:32 - Arrays
42:05 - Conditionals
52:57 - Loops
1:02:00 - Functions
1:09:47 - Array Functions
1:24:15 - String Functions
1:30:28 - Superglobals
1:34:05 - $_GET & $_POST
1:40:56 - Sanitizing Inputs
1:45:24 - Cookies
1:49:10 - Sessions
1:58:45 - File Handling
2:03:48 - File Uploading
2:17:20 - Erros & Exceptions
2:22:05 - OOP & Classes
2:35:14 - Feedback App Project
2:38:15 - Including PHP Pages
2:42:23 - Database & Feedback Table Setup
2:48:45 - Connecting To MySQL
2:53:54 - If & Foreach Shorthands
2:58:11 - Fetch From Database
3:01:05 - Inserting Data From a Form - Věda a technologie
Now I don't feel alone doing PHP tutorials. That's great 🥰
Haha you are not alone my friend. Everyone and their mother is doing JS tutorials now, so I will be diversifying a bit just like I used to. Of course still doing JS, but I want to do more PHP, Python, etc. I also want to get into Solidity and some web3 stuff.
@@TraversyMedia Java also Brad :D, but i think you are not prefer java than js or php
I really love your videos about php.
@@TraversyMedia That's great Brad. I think you are the codeholic as well.
You can't live without coding.
Do it as much as you enjoy it, but don't burn out. Your family needs you healthy ✊
@@kevinenrique2c13 thank you.
Always impressed with senior level devs that possess the heart of a teacher. Great stuff.
True... My senior was terrible at explaining things, which made me to quit my job after 3 months as an entry level.Hasty explanations with super technical terms. Communication 0.
As an educator, the one thing we enjoy seeing is an explanation opening understanding and then the 'student' teaching us new things as well.
IMSBHO - A good lead would do the same.
your comment sounds fake and self-promoting
PHP is a valuable skill for freelancers. ignore haters and learn it as much as you can .
PHP is still No.1 and will countinue to be in the next few hundred years.
Thank you, Brad! I made it all the way to the end coding along with you all the way! I recently interviewed for a position and didn't get the job because I was a little short on PHP skills. This course is my first real foray into PHP. I'll likely follow up with Codeholic's course on your channel next. That ought to get me in pretty good shape as far as PHP is concerned. Thank you again and congratulations on hitting 2M subs!
Thank you so so much! Not only did I learn some PHP, but I feel like my overall programming skills improved. It's a very nice thing of you to guide people onto the next step of the journey like you did at the end of the video, clears things up by a lot. Coming to PHP from JS was certainly easier but I feel that my JS got better as well during this crash course for some reason... thank you. ✌
Thanks Brad! I corrected several misconceptions and bad coding habits I discovered after going through this course. You have a masterful style and are a great communicator.
1:05:07 - It's the other way around. As seen on Stackoverflow, on their page entitled "What's the difference between an argument and a parameter?", on the difference: "A parameter is the variable listed inside the parentheses in the function definition. An argument is the value that is sent to the function when it is called."
Gemini explaines it so as well. Good job.
@@badbeatslayer could have been chatGPT or Phind
btw Phind is great for programmers
Good spot, extremlely funny that he mixed it up xD
This literally gave me a solid footing to jump on OOP in PHP and then Laravel. Thanks Brad for the time and effort it took you to come up with this awesome php-starter course. God bless you, man!
All the way from Nigeria. 💛
I also learnt to use Tailwind CSS from one of your tutorials :)
Thanks Brad, your contribution is significant, you allow people like me can keep the dream to become a professional programmer, you don't know how much I appreciate this.
As always thanks so much Brad. Another great crash course that has made me feel very comfortable in PHP and begin creating projects in PHP. My web dev journey would not be possible without your amazing videos!
My gratitude to you Brad Traversy for all you have done, which I will never forget. I truly appreciate you and your time you spent in making this wonderful content. Thank you very much for the course. I enjoyed every minute of your lecture as well as your marvelous sense of humor.
Good stuff, Brad! I coded all the way through. I have your object oriented php course in my Udemy account but I needed to get this crash course out of the way first. you're an incredible teacher, my friend.
Thanks Traversy media . This is not only a great refresher but a helpful reminder of all that I had almost forgotten, given that PHP was the very first programming language I learnt. Thank you very much for this beautiful piece.
Thank you for sharing knowledge about PHP.
I've been a C# programmer for many years, and about a year ago I worked on a PHP project, with a solution that does a lot of integration with other systems.
My take on PHP after that experience is:
- The syntax is honestly quirky and inconsistent, so it does take a while to accept that what could be done with a . must be done with -> and so on. But come on, it's not end of the world.
- Performance is much better han I expected. Being an interpreted language set my expectations quite low, but I have to say that real life proves that it is actually working very well.
- The built-in functions for I/O and integration is outstanding !! The ease of writing and reading compliant CSV files and JSON is just spectacular, and even more so when it comes to consuming SOAP services. Man that's easy, and it just works.
- The fact that you don't have to compile and deploy an entire package is a great benefit for some types of solutions. In our case we have parts of the code, that are user customizable, and for that PHP is just fantastic, since you are able to have small pieces of codes which are just plain text, and you can edit and redeploy without having to compile and publish the entire package.
So, all in all pretty happy with it. And YES, I know that some other languages offer some of the same benefits. That's not what my long winded post here was about 😎
Watched it and coded along until the very end. Thanks for putting this video together! Our developers use PHP and they’ll be glad I have learnt more about the language they use! Super thank you!!
I really looked through this entire course and repeated absolutely all the steps :)
Even though English is not my native language, but I really enjoy it! Thanks Brad for this AWESOME crash-course! 👍
The first and the longest tutorial I have watched, I was never into php but you did it for me. Thank you.
I've always been hating on php but i just realized it was merely influence.It is a great language. Thanks Brad. I started front-end web dev from this channel and i'm slowly growing into a full stack dev all thanks to Brad.
These last months ive been getting into the world of web development and every single course has helped me in a way or another. Thanks for that.
I've been using php for years and love content like this, always wanted to get into Laravel so looking forward to your upcoming courses on this.
Your courses are so pleasantly paced and easy to follow. University courses are waaaaay to slow and some other courses seem to be given by people on speed.
Keep up the good job!!! Loved every second of this! It was a huge help!
As a small follow-up for info:
For some reason it was impossible for me to get autoreload going. Both on linux (gnome, ElementaryOS) as well as on Windows (10)
Also, I used 2 OS because phpadmin gave me an error for a missing mysqli. Was completely unable to solve it even after fully removing and reinstalling and doing all other available solutions online, so I had to switch to linux. Installed xampp, set the PHP path and phpadmin worked like a charm :)
Awesome quick course, thank you brad for the great way you progress someone through the basics of PHP and end up designing an app. Good for someone coming from another programming language who wants to get to grips with PHP fast, thanks a lot for this!
Really awesome stuff. Thank you for the crash course. It helped me a lot. For those of who have access denied for user error when connecting to MySQL, be sure to input your port in the config.php in the $conn. example: $conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT);
Brad you're the best! I was just going over your old php course, happy to check this newer one as well!!
THANK YOU !! I love your courses and I've been looking for a PHP course for ages but I didn't click with any of the ones I found. Also you've played a huge part into me learning coding in general, I've learned soo much from your videos so thank you thank you !!
Thank you very much! This is one of the greatest crash course videos that I've every seen. I learned so much from you, this was very easy for me, because you explained everything very clearly! & also I already know C# and most of PHP just was very similiar to that! It's been 3 days and it was awesome. Now I can build websites with new language and a exitcing journey.
Always clear, concise, and exciting to watch your tutorials. I have a couple of your courses from udemy too. Keep it up.
Thanks TM, it took me about two days to finish this course. I am proud to say that I am more confident with PHP scripting and using mysql database because of this video. And good timing you just uploaded a laravel tutorial, I'll be hopping on it next. Thanks again!
It's great to see a professional doing a beginner tutorial. Keep up the good work.
I have been listening for 9 minutes and you sound like you know what you are saying and you are a good and intelligent teacher. I just hope I dont run away when thing get complex.
Great content. Brilliant teaching. very easy to listen to; no gimmicks. like being sat with a senior dev showing you the ropes.
I don't know why would someone dislike this piece of gold.
Even though I know PHP but I like to watch out your videos.
Brad, thank you so much; there will be nothing better than this; I woke up to see this surprise. I was waiting for this from Traversy Media
Brad always bringing the best content, I would like to see more of this and some Laravel tutorials you're great explaining the concepts.
Great course ! I Just wanted to mention that in 1:05:30, we call 'parameter' what goes into the function definition, and 'argument' what we use to call the function and not the opposite.
Came here to say this.
I have just completed this course and now moving toward the PDO course. Your MVC course on Udemy is excellent as well, I have it. Now I am feeling confident with PHP just because of you sir! Thank you very much!
Brad, this tutorial is awesome. Took me two days to do it all, but thank you so much!
It seems you can read our mind and know exactly what we want at any point in time. Thank you man.
Thank you Brad, I've been meaning to get onto learning PHP and this was a great introduction and crash course for it.
About to start my first job as a web developer. Thanks for the excellent refresher to play in the background!!
Trav, thanks for this great course, it has everything you need to start with PHP, greetings from my beautiful Peru.
Great course and well worth watching as usual, thanks Brad.
Awesome love seeing some modern PHP stuff from brad keep it coming!
I've been a web designer who dabbled in php for 20 years. I've never learned so much as I have in this lesson set up. I get bogged down and distracted by php books at times and this seemed to work better. I plan on going back over various areas and commit them to reflex memory. Thank you.
wow great course to start with for someone like me who studied software engineering, had basic knowledge of oop & even php but had forgotten, and now want to relearn from scratch. Thanks Traversy Media. Definitely got a new subscriber.
And cant wait to learn more. XOXO
Thanks Brad.
Commented under your Programming Language Guide video about the unjustified hate PHP was getting a while ago. Have also worked with node.js but reverted back to PHP for a recent project - while not perfect for every usecase, with all the functionality baked into the language, it just lives and breathes backend (...no, I won't abandon node.js completely - of course not).
I love your description of PHP as a 'blue collar programming language' - it's perfect when you don't want to get too fancy but rather just want to get things done quickly and reliably.
Would highly suggest giving it a chance when embarking on your next project - can't really see anyone still hating on the language after that.
Finished the whole video and learned basic php. Thank you Brad.
Cant wait to watch this. Thanks brad for amazing contents.
I only have a background in Visual Basic, which I have used from the beginning. Before that, I used Ashton Tate dBase II, dBase III , dBase IV, and then, finally, Clipper. I started in 1989. I had no idea where to start to try to learn PHP. So, I stumbled across this video accidentally. I watched it in its entirety and could hardly believe how relatable it was to my outdated background. You made it interesting and very easy to understand. I really appreciate you providing this content on CZcams for free. Great job!!
Thank you Brad. I just got a PHP job without knowing PHP. They offered me the job knowing I had to learn it.
Thanks Brad, I'm following your courses in the differents e-learning platforms and I'm learning a bunch. Great work :)
Awesome course. I've been doing front-end casually for years, built some stuff, but I've always been annoyed by the fact that I'm limited to the actual page and what I can see. I've always wanted to know how the WHOLE thing works, and this course has given me just that; what I was lacking to figure out where everything that the user does eventually ends up, and how it can be recalled from there or manipulated further. Feeling more like a (still very noobish) full-stack guy now. Thanks man
Thank you Brad! You're the best. Watched fully and written along.
Thank you. The bit about reporting errors was really useful ... no more hunting for hours for a missing bracket!
That PHP View extension for chrome is the biggest game changer I've encountered in like 5 years man, thank you.
I wanna control my emotions. I completed a simple project using most of the stuff taught here, for university. I cannot thank Traversy Media especially Mr. Brad enough for creating such a valuable content. Truly Appreciated :) my emotions.
Thank you so much. That's my first PHP discovery course. I need to work on a Laravel project from my company, started with this crash course, I will now move directly to the Laravel video. Thanks a lot again for all the effort dedicated for the dev community
Would love to see more php videos. Thanks Brad!
Agree
Thank you so much, Brad. Throughout April, I will be studying this course.
Awesome video Brad! I really appreciate your thoroughness and concrete examples!
When this video was out, I stumbled across it because I had an assignment and I needed some PHP knowledge. I watched for an hour, then gave up. Tomorrow I have a final in web dev, so I decided to watch the whole video this time, and oh god, I regret not doing that the first time, Your explanation is so nice, and the video is well organized. Thank you for your help.
Love all your tutorials, you're gifted. Thanks for sharing your knowledge, i've learnt a lot from your channel. ❤
This course was absolutely phenomenal! Thank you very much and bless you!
Great refresher course, and I realy liked it. Just some minor things like the fact that parameter and argument is actually supposed to be: parameter is declared, argument is what you pass to it. Inside the function, the parameter is just a variable with the argument that was passed. That is the way we had it at uni some 30+ years back, and I think that is a bit pedantic, but (hopefully in a fun way) to disagree on some trivial issue, also RGB and not RBG() ;-))
I'd love to see some more Laravel videos on some more advanced parts of the framework.
I work as a PHP dev using Laravel daily and always appreciate learning more stuff about the framework. Some good video topics could be stuff like Queues, Jobs, Notifications, Events, Broadcasting, TDD,
Can't tell you how many hours I spent with you, Brad ! Thanks a lot for all your precious work :)
Same! 🤘🏻
Oh My God !!
the last year we build a website thanks to your videos about PHP, so Thanks a lot ♥ !!
I feel like there are just a few people who love PHP and a lot of haters idk why But I think PHP is a really great tool to learn!
it has to do with previous versions to PHP 7 and the introduction of Ruby and then Node during those years of 2013 and prior. But the use of the language has only increased and you can build modern websites with it and Laravel, faster than with other tools. Not for any reason in 2011 they controlled 72% of the web, and now 78%. followed by C# and then Java.
@@enriquesneffels3053 This was a useful statistical informations, that really helps, Thank you Sir
Thank you for this lessons, Brad!
You're doing a great work!
Wow, we almost thought you forgot about us fully.
Thanks Traversy for the great resources
😂😂😂 I thought I was the only one feeling this way
I know lol. A lot of people have said that to me. I will start doing more PHP stuff. This is the starting point.
@@TraversyMedia Please do bro. This is a great resource. As I said before, I'm a primary hard book learner but I get to point of needing a visual element to really make stuff make sense and given I've been delving hard into pHp lately, this comes at the perfect time! Thanks again Brad. I really hope you end up putting together a Udemy pHp course as well!
I am a newbie coder hoping to transition career and become a web dev. I'm using FCC and your content and I just want you to know how appreciative I am of your work. Truly amazing. Thank you.
Really great content, very glad to have found your channel :) You have an excellent style of teaching!
Thank you for this amazing tutorial. I already know JavaScript and React. This tutorial was very easy and very useful for me. I learned so much for this 3 hours
This is an insanely clear tutorial! Well done!
I like how you can explain things to beginners as well as experts
Great lessons, addictive really appreciate you and the efforts in making this content available for free!...huge respect
I love your courses. We use PHP at work and I’ve taken all of your courses on Udemy.
These are always fun to go over again because I get to relearn what I often forget.
Thanks for sharing your knowledge with us cheers ☕️
Filipino?
@@ravencarlosrodrigo7608 I’m Mexican American but have lots of good friends that are Filipino ☕️
I wish that I could speak Tagalog but can’t but sure love me some pansit and lumpia ❤️
Hello very great
please i want To work on projects...i am a beginner
Give me your email ...
Thank you so much for the course. Very thorough and even covered file uploading/handling. Kudos!
Absolutely brilliant. Keep up the good work Brad.
Thank you Brad! I really enjoyed listening to your voice the whole three hours. My brain and body feel very very satisfied. Thank you again kind sir
Great, passed this tutorial in under 30 mins. Profound teaching.
Excellent tutorial! Video and audio production is top quality, the content material and supporting code is comprehensive. I learnt so much in just one video. The final Feedback project was spot on to complete the tutorial.
Thank you for your valuable content. I am a self-taught developer from Argentina and found your content very useful!
Thanks Brad you are life saver,you teaching is amazing keep up the good work
First tutorial I followed from beginning till the end.
Thanks Brad
Brad Traversy - Best Teacher for a reason 🔥❤️
Thank you Sir for PHP Course
His tutorials helps me a lot to become a Front End Developer
Great Courses like
* Modern HTML & CSS From The Beginning (Including Sass)
* Modern JavaScript From The Beginning
* 20 Web Projects With Vanilla JavaScript
* Tailwind CSS From Scratch | Learn By Building Projects
Other Projects like Microsoft Home Page, Hulu Website, Starbucks Website, Netflix Home Page and etc..
Thank You for your service
Hey Brad, I just want to add to my previous message a helpful note for those that may try to follow your great tutorial, if you're (people) using Monterrey 12.3.1. The XAMP, latest version won't install, period. So, I trashed the latest version and found the same version Brad is using and installed and now, I'm up to speed. It looks just like in the video.
Your tutorials are always informative and very clear, thank you so much man.
Just what I was hoping for at this point of time. Thanks Brad
The best PHP crash course ever! I love it.🙌
A great refresher, I really enjoyed it.
Thank you so much Brad! You are awesome.
This is amazing man! Love your work.
Loved the course, I learned a lot, thanks. Keep doing your thing
This is a very interesting tutorial. Easy to find needed stuff. Thanks a lot!
Congratulations. PHP is very consolidated language program but as you say with a lot of haters java, nodejs or rubyonrails programmers. Great course!!!
Loved this video! Am also signed up for your MVC Udemy course and am looking forward to it! I'd love to learn more about preventing security issues with PHP (i.e., CSRF and SQL Injection). It'd be awesome if you could do a PT2 for higher-level where you discuss that 😎!
What excellent timing. I start Monday at a new job using PHP.
Thanks brad! Needed a quick understanding of PHP for class and this is golden
Great lessons, appreciate you making this content available for free!
Thank you for this great effort that you made to produce this tutorial, I really enjoyed it.
This was a wonderful guide, thank you very much! It provides clear, solid foundations, and we get to understand it better by doing the tasks with you. Excellent work, thanks again!🤩