0:00
uh hello guys uh welcome to this video
0:02
so in this video i will show you uh how
0:04
to run uh php inside your vs code with a
0:07
live server kind of an extension and uh
0:10
how to resolve that error which comes
0:11
php cannot find executable when you try
0:14
to run this php application in vs code
0:17
so so that error message comes so i will
0:20
show you a extension right here which
0:23
can solve your problem just go to the
0:25
extensions tab just type this extension
0:27
php server and uh this is actually
0:31
developed entirely for php applications
0:33
in vs code so personally i use this
0:36
extension a lot specifically for php it
0:39
works quite perfectly you will see it's
0:43
almost having 2.5 billion installs so
0:46
just install this extension and after
0:48
installing this extension uh just go to
0:51
the settings and just make sure that you
0:56
this auto open on reload and just inside
1:00
the php server just make sure that you
1:02
write local host here and uh then you
1:06
can set your port number i have set this
1:08
port number by default it's 3,000 and
1:11
that's all that we need to do and uh
1:13
after that just create a simple php file
1:16
right here i've just created this simple
1:18
index.php file and just write some basic
1:21
php code and now to start this uh server
1:25
just right click and this option will
1:27
come php server serve
1:30
project so as soon as you select this
1:32
option you will see your project will
1:34
get started in the browser by default on
1:37
this port number localhost 3000 and you
1:40
can see this is your php code and let's
1:43
suppose i make some kind of changes
1:45
right here and uh side by side you will
1:57
changes so just refresh and you will see
2:01
the changes are reflected back and uh
2:03
this is actually the way by which you
2:05
can counter that error that php
2:07
executable not found just install this
2:09
extension and it's specifically built
2:12
for php kind of application for this you
2:14
don't need exam live server because
2:18
needed you can see i haven't started
2:21
this apache server this php application
2:24
is running i can close this so this is
2:26
running in the live server if you want
2:29
to stop this server you can simply
2:31
select this option of stopping the
2:34
server so there is also this option if
2:37
you want to reload all these options are
2:40
available if you want to open this file
2:42
entirely in the browser it will open
2:45
file again if you want to serve this
2:48
project you will see the project will
2:50
get started so this is the extension
2:54
guys which will solve your problem to
2:57
actually run php applications in live
2:59
server with a hot auto reloaded vs code
3:02
to counter that error message and thank
3:04
you very much for watching this video
3:06
please hit that like button subscribe
3:08
the channel comment on this video if
3:10
your problem is solved and i will be
3:12
seeing you in the next video