Installing XAMPP, VS Code + Environment Setup | PHP Tutorial #1

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
What's up guys, we will start PHP from today's course. I will teach you PHP from the beginning to the end. And I will teach you how you can build your websites in production with the help of PHP. Guys, PHP is a very beautiful programming language, a very good programming language. We will see PHP closely and understand all the aspects of PHP. I want all of you to comment below and tell me your name, we will see php closely and will understand all aspects of php i want you all to comment below and tell me your name where are you watching this video from, where are you doing this course from i would like to know and if there is anything i would like to give you in future, i will be able to reply to you in the comment section so do like this video and comment below many of you know me and you are going to join this course many of you know me and you are going to join this course. Many people have requested for this course and I did not want to drop your request at all. I thought why not I do this PHP playlist complete so why not we start PHP. I would like to tell you some things here before we start PHP. What is the first thing? The first thing is that people say that PHP is an outdated programming language PHP is an old language PHP is useless, it is not like that at all PHP is a very beautiful programming language There were some downsides in PHP There were some bugs in PHP But the time has come that you can't say PHP is bad There are versions of PHP If you go to php.net, you will see Now it has come here that you can't say PHP is bad now. PHP also has versions. If you go to php.net, you will see that new versions are released from time to time. If this was a garbage programming language, then perhaps its versions would not have been released. So here you will have to understand this thing. PHP 7 has come, earlier PHP 5 was there. Before that, there were some early versions of PHP but work on PHP is happening from time to time so you don't have to worry that PHP is a bad language PHP cannot be used or PHP will die out in future which programming language will die out which of your frameworks will be finished no one knows to be honest that's why it's good if you learn PHP then it will teach you something. If you don't know anything then how to do programming, it will teach you and then you believe me, learn some other programming language or some back-end language then you will not have any problem because you have already cleared the basics. Okay. So here we will do some installations means we will install some things first of all I would like to install visual studio code now what is visual studio code, I will talk to you about it so visual studio code is a source code editor I would like to type visual studio code here and I have typed visual studio code here and see here that from Microsoft this is a source code editor Visual Studio Code and I have typed Visual Studio Code and see here that this is a source code editor developed by Microsoft Corporation this source code editor will be very useful for you what it does is it will not add anything to your PHP program don't think that PHP program will add some masala to visual studio code it's nothing like that it will only do some shortcuts, some fast typing, syntax highlighting what is syntax highlighting? these terms trouble some people so I want to focus on each and every thing and move forward syntax highlighting is this thing that see this has become thick if a keyword is written in the programming this thing that see this has become thick. If a keyword is written of programming language, then see it has become thick. See here see here it has become thick. It is coming in green. See property is coming in red. Export is coming in purple. So this is called syntax highlighting. I know many of you know this thing. That's why we move forward. Let's install visual studio code. As soon as you write visual studio code in your google you will get this thing openly you guys click on the first link don't download code.visualstudio.com from any other source why should you download from any other source when microsoft is officially giving you why will you download from any other source now here i am a Windows based operating system that's why it is giving me the option to download it from Windows if you are in Mac or in any Linux distribution Ubuntu, Kubuntu then you can install it for that too I will download it here I will click here first and it automatically automatically start downloading. So this user setup has started downloading, it has been downloaded, my internet is very fast, if you are a little slow, then there is no tension, download it easily, once it is downloaded, click it and run it. At this point, some of you may have never done programming, and I am making this course from the basics and some of you may have done programming so I just want to tell you that you will feel that you know these things till some videos and believe me, you will learn something new in those videos too. This is my claim to you. So here to install it, I accept the agreement. Read it, if you have more time. Click on next, select the additional tasks you would like set up. It is telling you all these things, I will tell you, check all these boxes. What will happen with add to path? I will tell you one by one what will it do. What will happen with add to path? Whenever you will write a quote in any folder from your PowerShell, if I open windows power shell I don't want to waste your time in all these things but many people have asked many times if I write this then my visual studio code will open in this folder, you guys try it install is not done yet, so it will not work for you then you will check these two, so in any folder if you will right click, you will see open with code option so if you want to open vision studio code in any directory you can right click and open with code it becomes very convenient for you so you can check all these and along with that if you want desktop icon then you know you can do this click on next click on install I have already installed, you can click on install it installs like water butter, I will cancel it you don't have to cancel it, I repeat you have to install and finish I am canceling it because I have already installed it, okay and this is not a big deal, you have to install it install it and then open visual studio code, okay this is one piece of software which we want to install one more piece of software which we want to install. Another piece of software which I want to install is PHP itself. Now what is PHP? PHP is a backend programming language understand this. PHP is not a magic PHP is not a thing that you write it and it runs. To execute it we need a piece of software and you can download that piece of software from here. Now there are many methods to do this. Even if you download it from php.net but what we want is that we want to use php in backend, develop websites put all the source files of php in any folder and from there access it from the same computer we want to be able to execute those files from the same computer and in our browser, render our php websites so if you want this then what you have to do you have to install php, maybe you have to install Apache web server then along with that if you want to use database then after that you have to install PHP, Apache web server and if you want to use database then you have to install MySQL you will say who will do this much tension I am a beginner, I have never done programming if you are one of those people who have never done programming you will say what is MySQL, what is Apache server you will say PHP how to download, where to install, you will say what is Apache server? you will say PHP how to download, where to install you will get worried so your problems your beginner's problems someone has heard it who has heard it? Apache friends so you download XAMPP software now what is this? XAMPP makes all these things into one software which you have to go and buy separately sorry not buy, you have to install, everything is free by the way you get it here at one place now I will give you an example many of you must be eating biryani, if you eat then tell me in the comment section because I also eat, so to make biryani you may need many things, you may need cardamom you may need black make biryani, you people may need a lot of things. Cardamom is needed, large cardamom is needed, cinnamon is needed, Kasuri methi is also added, saffron is added and fennel seeds are also added, coriander is added. There are many things that you have to put nutmeg and all those things, you have to buy all these things in the biryani. So you have to buy all these things separately. You will go to the shop and say that Give me a packet of big cardamom, give me a packet of small cardamom. Give me one, give me one, give me that. So that's why someone has made a solution. A big packet is obtained by mixing biryani. Everything is there in it. It also has cardamom, it also has cinnamon. It also has fennel. Everything happens in it. So in a way, consider it the same packet, ZAMP, which has everything to make biryani. So we have to make biryani, that is, we have to make a PHP website. And this ZAMP makes all those things available to us, which we want to see our PHP websites live. So very soon we will be able to see our PHP websites live. Once ZAMPP is installed. So this is the second piece of software which I want to install for you. It is a software of 148 MB. Now you see here XAMPP for Windows, Linux and Mac it is for all three. So they have some more applications which make your life easier. So sometimes in the future you become a good web developer you know everything so what I will say is come back here and try all these applications once you run the application your work will be done but for now we will install XAMPP remember if you are in Linux or OSX and your work will be done but for now we will install XAMPP remember if you are in Linux or OS X or Macbook then you will consider both I am in Windows so I am considering Windows here I will download it here it is 147 MB size now see here this is 0.29 0.16 which one to install you will think do the to understand which one to install do the first one, there is not much difference do the first one, there is not much difference whenever a software upgrades its version, people get worried I was teaching a Python course, I will tell you in that Python 3.7.1 to 3.7.2 comes new so people ask is this course valid or not but the basics are same maybe the feature which is added you should never use it maybe it is a bug fix or a small change so always it is very difficult to bring major change in any software if it is 3.7.1 or 3.7.2 I don't think there will be much changes in it similarly, your php till it is 7, if later it comes 9 or some other version then also the basics of php is in php 5 and php 7 is kind of same so I hope you will be able to understand use your brain, php is ph you guys will understand. Use your brain. PHP is PHP. You will understand. Don't worry at all. You guys install XAMPP. A beginner's mind keeps asking a lot of questions. How to do this? How to do that? Will I get a job? Will it be a waste of time to learn this? I want to make you believe one thing. Whatever programming language you pick up and learn in this world, your oops moment will never come. Shit, come to your mind that I have learned this I should have learned this, I have wasted my time with php it will never happen with you, so these famous programming languages whose name you keep hearing, any of them you pick up the time you spend in thinking that I should learn or not, you spend that much time if you actually learn much time to learn it in actual then definitely you will get benefit and not loss because after that you will get the basics of programming and you will be able to learn any other language very easily. Let's move ahead and install XAMPP I told you what is XAMPP XAMPP is basically a package in which you get many things you get php in XAMPP along with php you get a warning from UAC, just ok it, you will not face any problem now here some people will get that warning I got it, I have ok it, now don't take tension setup XAMPP setup wizard, next it now it is saying what all you want to install it is installing some additional components install all the components click on next it is asking where you want to install xampp it is in the default location it is perfect, we will install it in cxampp click on next and it is saying learn more about bitnami I am removing it click on next and it it is saying learn more about bitnami, I am removing it click on next and it is saying now we will install it click on next and it is installing so apache, mysql, php and pearl, we will not use pearl apache, mysql, php we will use mysql, php, apache is a web server we will use that, so when you have a lot of traffic, you have to run a web server, they will use it. So when you have a lot of traffic, then you have to run a web server. Maybe you are making a normal website so maybe you don't need a web server if only you use that website then you will feel that why should I use a web server when I can open my html and see but when a lot of people will come to your website, then you will have to configure a web server. So if you want to configure that web server, then you will have to install the web server. So from the beginning, we will make all these things keeping in mind our websites. So we will not do any such work which is small scale. We will see ourselves as a PHP developer that if we are told that we need a website in which 1 billion users are going to come or 1 million users are going to come on that scale of websites, our head should be yes we should be nodding our heads, we will say yes, it will be made, I will make the website so we will use Apache web server, we will use all the best practices of production so that the website Apache web server, we will use all the best practices of production so that website doesn't get down, okay you will never want your website to be down or your resources to be less so we will see that kind of things here but first basics first we will understand the basics why psp is used what is the importance of psp in our life if we are a web developer so this xampp is being installed now and it takes some in our life if we are a web developer so this is getting installed and it takes some time in some PCs my PC is a little faster relatively now it is possible that I said in a video that my PC is a little faster and it will take a little time for you, someone commented that I have i9 I have this much RAM, so you are an exception bro may be in your PC, but the majority of us use a normal PC. Not everyone has a PC worth 5-6 lakhs. So if you are one of them, then God bless you. You will run faster than me, but the majority of people who have a normal computer worth 25-30-70 thousand it can take a little time and that's totally fine. It takes 1-2 minutes to install, let it be. It says that's totally fine. It takes 1-2 minutes to install. Let it be. He is saying that setup is finished. Do you want to run XAMPP now? Here you want to run XAMPP or not? So you say yes, I want to do it. I will show you XAMPP also. He is saying that if you want to choose your language, save it. It doesn't matter. So, my XAMPP is installed as you can see it shows me that your xampp is running now i will start i will restart and my apache and mysql both are started i want to give you a little tour of xampp and in next video we will take a tour of XAMPP and see what is XAMPP and why is XAMPP used and for now I would like you to first install Visual Studio Code and XAMPP and come to this stage that your Apache and MySQL is running. There used to be an error earlier that port 80 is already in use and that was because of skype i don't think you will have that problem i am mentioning it because it was there 5 years ago what happened was if you have skype installed it used to say your skype is taking port 80 it didn't even tell you that he was taking skype he used to say port 80 is already in use cannot start xampp, this type of error used to come so you reinstall skype, update it remove it if there is a problem for some time, by the way it won't come 0.0001% probability till now I haven't got any case like this in which there is a problem, but I am telling I want to share my experience with you if any application is using port 80 then you can get to know by right clicking on task manager then here in services or in details you can go and get to know which process id is troubling you so xampp tells you the process id that this process ID is yours and it is using your port 80 so you will get to know if by any chance it is not telling you which process ID it is then you can write resource monitor here after writing resource monitor you can open it in windows 10, come to network click on network click on listening ports you will get the port number port 80 should be free it is telling me that it is taking HTTP D.EXE this is my green this problem is not going to come to you for the first time so I don't focus on it much but if someone comes in the future, I will give some directions for debugging so we run mysql we run apache server and both are successfully run apache is using these two ports and mysql is using 3306 port so I hope you understood this if you click on admin in MySQL Then this phpMyAdmin opens What is phpMyAdmin? phpMyAdmin is nothing but it helps you in looking at your databases which database you have created If you want to import or export database data If you have an excel file from that excel file you want that excel file to be converted in your database so if you want this then you can do that also so this is our some information that which web server is being used which is the PHP version which are the extensions of PHP which user are you so in all these things, what kind of user you are so don't go for all these things if you are a beginner just install XAMPP install VS code after that you have to start this if you can do this much then don't think about anything else everything else is a bonus once this is done then we will see how we will do the rest of the work to run PHP and almost we are done we will write PHP program very soon guys here I want to say one important thing that I will put this course in a playlist and I will put the link of that playlist in the description, that playlist will be shown in my playlist section so you can go to playlist section and access it. So I would like everyone to bookmark that playlist and save that playlist so that all the videos you have, they come. So for now, guys, that's all in this video. I hope I have explained to you a lot about installation, VS code, XAMPP and you must be feeling comfortable at this point that you have started PHP. So we will meet in the next video and we will talk about the next. So that's it for now guys in this video. Don't forget to like this video at all. It increases my motivation. Thank you so much guys for watching this video and I will see you next time. you
Info
Channel: CodeWithHarry
Views: 1,328,945
Rating: undefined out of 5
Keywords:
Id: at19OmH2Bg4
Channel Id: undefined
Length: 20min 42sec (1242 seconds)
Published: Fri Apr 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.