How to Run PHP file on localhost | Windows 10/11 [ 2024 Update ] XAMPP Server localhost

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone I welcome you to G scrip today  in this video I'm going to show you how you can   easily run PHP file on our browser so I'm going  to show you how to install zamp how to set up our   zamp how to create PHP files how to run that using  our Zam server on our browser so you can also use   Wham server as well I have already made a detailed  video about Wham server so if you want to run your   P file using Wham server so that also you can do  so in this this video I'm going to show you about   Zam server so how to use Zam server for our PHP  projects so do watch the video till the end if you   face any issues in Middle you can always comment  in your comment sections I'll try my best to help   you and don't forget to subscribe our channel  that really motivate me to make more such videos   now to install zamp you need to First simply go  to favorite browser and to just simply search   over here zamp download and hit enter and you can  see we have download Zam so just just simply open   that and you can see the latest version of zamp  at the time of making of this video is version   8.2.2 so whatever the latest version when you  are installing this Zam so probably when you'll   be watching you can see a different version but  what all I can say is whatever process that I'm   showing on this video will pretty much same all  right and this link also I'm going to put right   in your description so you can directly use that  link also to land over to the official site of   Zam right so once you here uh this is our latest  version you to click on this download button so   awesome our download will be starting soon so you  can go back to our you know previous directory so   on our source Force net it going to start shortly  downloading of our zamp so you can see it is   rightly started downloading zamp right so let's  you know cancel this as I have already downloaded   it so I'll go to my download directory and you can  see already we have that zamp is downloaded over   here so just simply double click on the installer  to ask you for administrative privileges click   on yes and let's minimize our You Know download  directory so welcome to Zam and can see welcome   to Z zamp setup wiard is rightly opened over here  so let's click on next so these are all files that   it going to install which is you know totally  fine you can keep this all default and click   on next over here so it going to create a zamp  folder on our C drive which is again totally fine   just simply click on next so um default language  is English so you can always change it to other   language if you wish let's click on next over  here so it's ready to be installed click on next   and you can see it has rightly started installing  our Zam right so it will take some time you know   about a couple of minutes so once we are done with  this I'm goinging back to this video so we'll come   back and now and clearly see completing zamp Setup  Wizard is rightly open so our zamp is successfully   installed so do you want to start Zam control  panel now so yes I want to start my Zam control   panel as I'm going to show you how to run PHP on  our Local Host so for that know first click on   finish so that will launch our zamp control panel  and you can see Zam control panel is subsequently   launched over here so first thing that you need  to do is you need to start our Apache so you can   see our Apache is rightly started now and you  need to also start our MySQL so click on start   and you can see our MySQL is is also started as  well all right so now now it is properly done   you can always you know minimize our Zam control  panel it's time to create some code so just simply   click on this uh Explorer and go to your C drive  and you to and to go to the Zam control panel so   go inside the Zam control panel and here you'll be  seeing we have a HD docs folder right so you need   to go inside that HD do folder so always remember  whatever projects you are creating on PHP so you   need to put that PHP folder within HD do folder  right so you need to right click and let's create   a new you know folder called PHP Dash practice  so I'll just simply go inside that PHP practice   folder I'll just simply right click and create a  new you know text document and I'm going to give   that text document name as hello and I'm going to  change that txt with PHP all right hit enter and   do you want to change the file name extension yes  I want to change the file name extension so now it   is properly changed with PHP file type so if you  unable to see something like this then what you   need to do is you need to click on view and you  need to click on the show and you need to enable   this file name extensions so you can see just  you know uh beside this we have a tick icon right   so that means it is properly enabled file name  extension so once you have that enable you'll be   able to see this PHP or py or dot you know Java so  that sort of file name extensions properly coming   so once you have that you can see hello.php so  let's right click on the file and open it in   notepad so I'm opening the hello.php file on one  Notepad and here I'm going to write a simple PHP   code snippet so angular bracket PHP then end that  angular bracket with you know uh question then   angular bracket and here what I'm going to do is  I'm going to equal hello world hello world right   so you know after writing this much code snip it  you need to go to file and you need to save this   file so once you have you know successfully ret  in this code and have saved this file it's time   to get that output called hellal on our browser  right so that is the intent so what you need to   do is now you need to go to your browser to just  simply open a new tab and here you to just simply   type Local Host that's all and then you to give  a slash and you to you know provide this folder   name so remember we have created a PHP practice  this folder name right so you need to right click   you need to you know go to this rename option  and need to copy this folder path PHP practice   folder path and then to go to your browser again  so after Local Host you need to give a slash and   then you to right click and paste that folder path  over here PHP practice folder path hit enter and   immediately you'll be seeing that it is properly  showing this hello.php file you know under PHP   practice right so now to run this hello.php file  and to get that output you just simply click on   this file and there you go you can see the output  is properly coming right whatever you have written   over here hello world is properly showing up  over here so let's say you change this hello   world with hello everyone and you are again going  to file and saving this file so now it should be   showing hello everyone right on our browser  so once you refresh this you can see now it   is showing hello everyone right so in this way I  can easily inst zamp you can use zamp as a server   and you can you know run your PHP programs on our  Local Host so in this you can easily run your PHP   files on our local host and I have also started  gy syntax channel so here regularly I'm posting   coding related videos so do subscribe our gy  syntax Channel as well and I have also started   greeky skip vlogging channel so this channel also  you can subscribe so that's basically all about   this video I have rightly showed you how we can  easily run a PHP file on a local host so that's   basically all about this video thank you very  much for watching this video and God bless you
Info
Channel: Geeky Script
Views: 2,696
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: C1UlL3eJ82g
Channel Id: undefined
Length: 8min 8sec (488 seconds)
Published: Tue Feb 13 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.