How to Run PHP file on localhost | Windows 10 [ 2022 Update ] Complete guide for using XAMPP Server

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone I will come here to my  channel today I'm going to show you   how to run your PHP file in  your localhost so let's begin now to run your pc file in your  localhost i'll be recommending you   a software called xampp so using this xampp  server you'll be able to run your php file   in your local host so for that you need to  first install xampp so before that you need   to first download xampp so go to your favorite  browser and you know just simply type xampp   download then enter and then you will  be seeing this www.apachefriends.org   is basically our first source result so you  know just simply click on this download xampp   this is automatically going to redirect  you to this official website of xampp   and if you just fall down a bit you'll be  seeing this amp is available for windows and   and this php version of 7.3.28 or 7.4.19 and  8.0.6 versions so 8.0.6 is basically you know   the latest version of php if you are using  some older version of php then you can   just simply proceed with these links  but in this video i'd like to show you   how to download xam for using the latest  version of php that is this point two   point six so for that you need to just you know  simply proceed with this download 64-bit option and this willian automatically going to start  downloading zamp i have already downloaded it   so just simply cancel it and if i just simply  minimize my browser and if i just simply go   to my download directory you can clearly see the  xampp 8.0.6 installer has been rightly downloaded   over here and the file size is 157 mb i'll be  also putting the link in the description so you   don't need to worry about these links and all so  you'll be getting the link in the description only   all right and now this is the installer to  install exam just you simply double click on it   and after giving administrative privileges just  to simply minimize my download directory and now   as you can clearly see our exam setup wizard has  been directly opened so just simply click on next   so these are the files that you are going  to be installed that is this apache server   mysql filezilla ftp server marker email server  and tomcat and and they're also going to install   this php along with pawn and side by side  they are also going to install phpmyadmin   using which we use this mysql and then  they're also going to install this webalizer   and then this fake send menu so you know just  simply check all this and then just you know   simply click on next so this is going to be  you know your installation folder that is the c   xampp if you want to change your installation  destination then you need to just simply click   on this browse button and you can change that i'd  recommend you not to change this folder and just   you simply click on next and the default language  is english if you want to change this language to   let's say dutch then you can change that only  these two languages are available currently   so just you know simply select english if  you wish and then just simply click on next   and now just again simply click on next this  alien automatically going to open this uh   official website of bitnami for the time being  just you know simply minimize it and it's now   currently ready to install so just in a simple  click on next for installation and it has you   know rightly started installing xampp now let's  see what this bit timing website is actually uh   giving us so here is currently saying that say  hello to your favorite application on xampp   so if you just scroll down a bit  you'll be seeing that they have these   various way builder called these wordpress zoomla  drupal and all so all these are very very useful   web builders i have already made a video on  how to use this wordpress in your localhost   i'll be also putting the link in the  description so i will recommend you to also   check that video so that you can use this  beautiful feature of zam that is this wordpress   and how to use this what resource absolutely  free in your localhost so do watch that video   as well you will get to know more about  this website and all using that video   now the installation is currently running it's  now currently unpacking some files it will take   some time to install maybe you know a couple of  minutes or even more so what i'll be doing is   i'll be coming back after installing xampp yeah so  we'll come back and now as you can clearly see our   exam has been rightly installed and he's not going  to telling that whether we'd like to start our   control panel now so you know just simply check  this and just you know simply click on finish   so this will you know automatically  going to open your control panel   and now as you can clearly see our xampp  control panel has been in rightly opened   so you can just you know simply start your  apache and you can also start your mysql   so you know just simply start your apache  and mysql and then just simply minimize your   zam and then just you know simply go to your c  directory and then you'll be seeing this same   folder so you just simply double click on it and  then you'll be seeing this htdocs folder this is   very important guys just remember this htop folder  for them using this http folder we basically host   our php file so xampp used this hdr folder which  basically acts as a server in your local localhost   and now as promised now i'd like to show you  how we can run your php file so for that just   you know simply click on a new folder and  let's name this as a php underscore program   so go inside that folder in here i'd like to  create a new file where we'd like to you know   simply write a php code snippet so when i just  simply uh click on right click on it first and   then just you know simply click on new then  text document so in here just in a simply go   inside that text document and here let's write  a simple php code snippet so angular bracket   php then you know just simply close that  tag and here just you know simply type   hello first decode then hello world and then  just you know simply go to file then save as and   then you need to save this file as let's give  a file name as prog then dot php this is very   important you need to save this file as dot php  extension and also you need to save as type as to   all file so you need to do this two thing first  you need to save this file as your filenamedn.php   and you need to save this file as type all file  and then just you know simply click on save   so this will you know going to create this prog  file with the dot php extension you can till   i see this php file you can always delete  this new document that will not create any   problem so now that you have rightly saved your  simple php code snippet inside this proc file   so you know just simply go to your favorite  browser just open a new tab and in here just   you know simply type local host then enter this  will automatically redirect you to this exams   dashboard so in here just go again to your hd doc  so you have saved this program inside this php   underscore program directory so you  know just simply right click on it   then copy just copy that folder name then go  to your browser once again then go to this url   just simply delete this dashboard then  simply right click on it and paste   php program then enter and then you'll be  seeing this page called index.php program so in   so this php program is basically your name of your  folder and you can clearly see this prog.php file   has been you know rightly shown over here so if  you just simply click on that you will be seeing   this hello world has been you know rightly shown  in our browser so that is basically coming from   your php program this hello world you can  always verify that by you know just simply   changing if you just simply change this to hello  everyone and then just again go to file then save   and if you just reload it you'll be seeing this  hello everyone rightly shown in our browser   so in this way you run your php program in in your  localhost i have rightly shown you how to install   xampp and then i have rightly shown you  how to run your phd program in localhost   i have this website called kikiskip.com in here  you'll be seeing various tutorials along with some   blogs that i have written so do check our website  geekyskit.com so that's all for this year friends   thank you very much for watching this video if  you like this video then please give it a like   and also do share with your friends thank you very  much for watching this video and god bless you all
Info
Channel: Geeky Script
Views: 419,239
Rating: undefined out of 5
Keywords: how to install xampp, php, xampp, how to install xampp for windows 10, how to install xampp server on windows 10, install xampp, XAMPP installation, xampp tutorial for beginners, xampp setup, PHP, Web-Development, xampp server, install xampp windows, xampp windows 10, xampp server setup, xampp tutorial, xampp installation, how to run php file on localhost, how to run php file on localhost xampp, how to run php file, PHP tutorials, php programming, How to Run PHP on Local Server
Id: tcoIVp1eNgM
Channel Id: undefined
Length: 10min 15sec (615 seconds)
Published: Sat May 29 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.