uh hello guys uh welcome to this video
so in this video i will show you uh how
to run uh php inside your vs code with a
live server kind of an extension and uh
how to resolve that error which comes
php cannot find executable when you try
to run this php application in vs code
so so that error message comes so i will
show you a extension right here which
can solve your problem just go to the
extensions tab just type this extension
php server and uh this is actually
developed entirely for php applications
in vs code so personally i use this
extension a lot specifically for php it
works quite perfectly you will see it's
almost having 2.5 billion installs so
just install this extension and after
installing this extension uh just go to
the settings and just make sure that you
enable
this auto open on reload and just inside
the php server just make sure that you
write local host here and uh then you
can set your port number i have set this
port number by default it's 3,000 and
that's all that we need to do and uh
after that just create a simple php file
right here i've just created this simple
index.php file and just write some basic
php code and now to start this uh server
just right click and this option will
come php server serve
project so as soon as you select this
option you will see your project will
get started in the browser by default on
this port number localhost 3000 and you
can see this is your php code and let's
suppose i make some kind of changes
right here and uh side by side you will
see
the if i make some
changes so just refresh and you will see
the changes are reflected back and uh
this is actually the way by which you
can counter that error that php
executable not found just install this
extension and it's specifically built
for php kind of application for this you
don't need exam live server because
examp is
needed you can see i haven't started
this apache server this php application
is running i can close this so this is
running in the live server if you want
to stop this server you can simply
select this option of stopping the
server so there is also this option if
you want to reload all these options are
available if you want to open this file
entirely in the browser it will open
this
file again if you want to serve this
project you will see the project will
get started so this is the extension
guys which will solve your problem to
actually run php applications in live
server with a hot auto reloaded vs code
to counter that error message and thank
you very much for watching this video
please hit that like button subscribe
the channel comment on this video if
your problem is solved and i will be
seeing you in the next video