How to Run PHP file on localhost | Windows 10 [ 2022 Update ] Complete guide for using XAMPP Server
How to Run PHP file on localhost | Windows 10 [ 2022 Update ] Complete guide for using XAMPP Server
Hello Everyone! Today in this video I am going to step by step guide you How to Run PHP file on localhost. In that process you will also get to know about installing Xampp Server on Windows 10. Windows (64-bit).
Now XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages.
So our main question is How to Install the Xampp server on Windows 10? So let’s begin…
Geeky Script (\r@GeekyScript) is Computer Science - Educational Videos Creator 🎉 You can support by buying a coffee ☕️ here — https://www.buymeacoffee.com/geekyscript
✻ I really hope you find this video useful. ♥
✻ Please click on the CC button to read the subtitles of this video.
Step 1. First You need to download Xampp Server. For that, just follow the following link. https://www.apachefriends.org/downloa… This page will lead to the Xampp download on Windows 10. So just click on download and it will start downloading automatically.
Step 2. After downloading just double-click on the installation file for installing Xampp Server on your Windows 10 OS. 64 bit. In my video, I have guided you step by step on how to install the Xampp server. Just follow that if you are facing any issues.
Step 3. Now after installing the Xampp server just simply start the Apache server and MySql.
Step 4. Now go to c drive then the Xampp folder and then the htdocs folder. And in here just create a PHP file and write a hello world script.
Step 5. Now open the browser and type localhost/nameOfYourPhpFile.php And there you go!! You have successfully installed the Xampp server on your Windows 10 OS. Cheers!! Now you can run any server-side scripting language.
So that’s all my friends! In my following videos, I’m looking forward to posting videos on how to download WordPress and run on your Xampp server for free. So please subscribe and hit the bell icon to receive notification!! Thanks a lot, mate. :)
The instructions in this video tutorial can be applied to laptops, desktops, computers, and tablets which run the Windows 10 operating system like Windows 10 Home, Windows 10 Professional, Windows 10 Enterprise, Windows 10 Education. This tutorial will work on all hardware manufacturers, like Dell, HP, Acer, Asus, Toshiba, Lenovo, and Samsung.
Topics addressed in this tutorial: How To Download And Install Xampp On Windows 10 64 bit OS Install Xampp on Windows 10 How to Install Xampp and Get Started Install Xampp on Windows 10 How to Install Xampp and Get Started Xampp installation windows 10
--------------------------------------------------------------------------- MY RELATED VIDEOS: ✻ All about Android Studio: • How to install Android Studio on Wind… ✻ All about PostgreSQL: • How to Install PostgreSQL \u0026 pgAdmin 4… ✻ All about MongoDB: • How to install MongoDB on Windows 10 … ✻ All about MySQL: • How to Install MySQL on Windows 10 [ … ✻ All about WordPress: • How to Install WordPress in Xampp (Lo… ✻ All about Java Spring: • Spring Framework | Spring setup in Ec… ✻ All about Maven: • Maven project in NetBeans [ 2021 Upda… ✻ All about eBook: • How to Create an Ebook for FREE
--------------------------------------------------------------------------- THANK YOU so much for watching! Please make sure to LIKE and SHARE the video and SUBSCRIBE to the channel for more such videos :)
--------------------------------------------------------------------------- CONNECT WITH ME ON: ✻ Website: https://geekyscript.com/ ✻ LinkedIn: https://www.linkedin.com/in/geekyscript/ ✻ Twitter: https://twitter.com/GeekyScript ✻ Email: [email protected] ✻ YouTube channel: / geekyscript --------------------------------------------------------------------------- Song: Jarico - Island Music promoted by #BackgroundMusicWithoutLimitations Watch: • Free Background Music For Youtube Vid… Free Download: https://bit.ly/3n3snwj ---------------------------------------------------------------------------
Content
0.08 -> hello everyone I will come here to my
channel today I'm going to show you
3.76 -> how to run your PHP file in
your localhost so let's begin
24.32 -> now to run your pc file in your
localhost i'll be recommending you
28.32 -> a software called xampp so using this xampp
server you'll be able to run your php file
35.84 -> in your local host so for that you need to
first install xampp so before that you need
41.44 -> to first download xampp so go to your favorite
browser and you know just simply type xampp
47.76 -> download then enter and then you will
be seeing this www.apachefriends.org
53.76 -> is basically our first source result so you
know just simply click on this download xampp
61.12 -> this is automatically going to redirect
you to this official website of xampp
66 -> and if you just fall down a bit you'll be
seeing this amp is available for windows and
71.2 -> 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
83.84 -> the latest version of php if you are using
some older version of php then you can
89.2 -> just simply proceed with these links
but in this video i'd like to show you
93.68 -> how to download xam for using the latest
version of php that is this point two
99.44 -> point six so for that you need to just you know
simply proceed with this download 64-bit option
107.36 -> and this willian automatically going to start
downloading zamp i have already downloaded it
113.2 -> so just simply cancel it and if i just simply
minimize my browser and if i just simply go
119.28 -> to my download directory you can clearly see the
xampp 8.0.6 installer has been rightly downloaded
126.96 -> over here and the file size is 157 mb i'll be
also putting the link in the description so you
133.6 -> don't need to worry about these links and all so
you'll be getting the link in the description only
138.96 -> all right and now this is the installer to
install exam just you simply double click on it
148.24 -> and after giving administrative privileges just
to simply minimize my download directory and now
156.8 -> as you can clearly see our exam setup wizard has
been directly opened so just simply click on next
163.84 -> so these are the files that you are going
to be installed that is this apache server
167.44 -> mysql filezilla ftp server marker email server
and tomcat and and they're also going to install
173.92 -> this php along with pawn and side by side
they are also going to install phpmyadmin
179.84 -> using which we use this mysql and then
they're also going to install this webalizer
186 -> and then this fake send menu so you know just
simply check all this and then just you know
191.04 -> simply click on next so this is going to be
you know your installation folder that is the c
197.68 -> xampp if you want to change your installation
destination then you need to just simply click
201.68 -> on this browse button and you can change that i'd
recommend you not to change this folder and just
208.32 -> you simply click on next and the default language
is english if you want to change this language to
215.12 -> let's say dutch then you can change that only
these two languages are available currently
220.96 -> so just you know simply select english if
you wish and then just simply click on next
227.36 -> and now just again simply click on next this
alien automatically going to open this uh
233.36 -> official website of bitnami for the time being
just you know simply minimize it and it's now
238.48 -> currently ready to install so just in a simple
click on next for installation and it has you
244 -> know rightly started installing xampp now let's
see what this bit timing website is actually uh
251.36 -> giving us so here is currently saying that say
hello to your favorite application on xampp
257.92 -> so if you just scroll down a bit
you'll be seeing that they have these
261.68 -> various way builder called these wordpress zoomla
drupal and all so all these are very very useful
270.48 -> web builders i have already made a video on
how to use this wordpress in your localhost
276.88 -> i'll be also putting the link in the
description so i will recommend you to also
281.6 -> check that video so that you can use this
beautiful feature of zam that is this wordpress
288.32 -> and how to use this what resource absolutely
free in your localhost so do watch that video
293.76 -> as well you will get to know more about
this website and all using that video
299.92 -> now the installation is currently running it's
now currently unpacking some files it will take
306.56 -> some time to install maybe you know a couple of
minutes or even more so what i'll be doing is
312.24 -> i'll be coming back after installing xampp yeah so
we'll come back and now as you can clearly see our
318.48 -> exam has been rightly installed and he's not going
to telling that whether we'd like to start our
323.84 -> control panel now so you know just simply check
this and just you know simply click on finish
329.6 -> so this will you know automatically
going to open your control panel
333.6 -> and now as you can clearly see our xampp
control panel has been in rightly opened
337.52 -> so you can just you know simply start your
apache and you can also start your mysql
344.32 -> so you know just simply start your apache
and mysql and then just simply minimize your
349.68 -> zam and then just you know simply go to your c
directory and then you'll be seeing this same
356.56 -> folder so you just simply double click on it and
then you'll be seeing this htdocs folder this is
363.92 -> very important guys just remember this htop folder
for them using this http folder we basically host
371.92 -> our php file so xampp used this hdr folder which
basically acts as a server in your local localhost
380 -> and now as promised now i'd like to show you
how we can run your php file so for that just
385.52 -> you know simply click on a new folder and
let's name this as a php underscore program
392.64 -> so go inside that folder in here i'd like to
create a new file where we'd like to you know
398.16 -> simply write a php code snippet so when i just
simply uh click on right click on it first and
403.28 -> then just you know simply click on new then
text document so in here just in a simply go
411.2 -> inside that text document and here let's write
a simple php code snippet so angular bracket
419.28 -> php then you know just simply close that
tag and here just you know simply type
426.4 -> hello first decode then hello world and then
just you know simply go to file then save as and
437.12 -> then you need to save this file as let's give
a file name as prog then dot php this is very
443.92 -> important you need to save this file as dot php
extension and also you need to save as type as to
451.28 -> all file so you need to do this two thing first
you need to save this file as your filenamedn.php
458.96 -> and you need to save this file as type all file
and then just you know simply click on save
466.64 -> so this will you know going to create this prog
file with the dot php extension you can till
472.96 -> i see this php file you can always delete
this new document that will not create any
478.8 -> problem so now that you have rightly saved your
simple php code snippet inside this proc file
484.64 -> so you know just simply go to your favorite
browser just open a new tab and in here just
491.2 -> you know simply type local host then enter this
will automatically redirect you to this exams
500.48 -> dashboard so in here just go again to your hd doc
so you have saved this program inside this php
512 -> underscore program directory so you
know just simply right click on it
515.68 -> then copy just copy that folder name then go
to your browser once again then go to this url
524.56 -> just simply delete this dashboard then
simply right click on it and paste
532.32 -> php program then enter and then you'll be
seeing this page called index.php program so in
539.6 -> so this php program is basically your name of your
folder and you can clearly see this prog.php file
545.36 -> has been you know rightly shown over here so if
you just simply click on that you will be seeing
550.16 -> this hello world has been you know rightly shown
in our browser so that is basically coming from
555.28 -> your php program this hello world you can
always verify that by you know just simply
561.52 -> changing if you just simply change this to hello
everyone and then just again go to file then save
570.08 -> and if you just reload it you'll be seeing this
hello everyone rightly shown in our browser
576.72 -> so in this way you run your php program in in your
localhost i have rightly shown you how to install
583.12 -> xampp and then i have rightly shown you
how to run your phd program in localhost
588.24 -> i have this website called kikiskip.com in here
you'll be seeing various tutorials along with some
593.76 -> blogs that i have written so do check our website
geekyskit.com so that's all for this year friends
600.24 -> thank you very much for watching this video if
you like this video then please give it a like
603.68 -> and also do share with your friends thank you very
much for watching this video and god bless you all