How to Run PHP Using Visual Studio Code 2023 - [ PHP VSCODE ]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to my Channel today in this video tutorial we are going to learn about running PHP in Visual Studio code 2022 so let's start so for this we need two extensions the first one is PHP intelli fence and the one the second one is PHP server so we will click on this extensions and here I'll search for uh HP and Tilly and this first one I'll click on this this one and now to install this extension now we need to disable the built-in PHP extension in Visual Studio code so it has given the procedure for uninstalling or disabling in that PHP extension so I'll copy this text Ctrl C this and I will go to this um extensions and here I will Ctrl V8 and search this now the second one so I'll disable this one so now as we have disabled this so now we will go here and we will search for HP and Billy and and now I click on this and now we will install this now it is installed so now we will search for uh PHP server so I'll use server and now it will search this this first one I'll click on this and now I'll install this as well now as we have installed both of them so now I'll close this I'll close this extensions and now we will open this file explorer now we have this PHP folder and now in this folder I will create a new PHP file so I'll name this index dot dot and now I'll hit enter now our HP file is created now I'll create an exclamation mark here and now I'll hit Ctrl and space and now I'll hit enter so it will create automatically this code for us now I'll come here and now we will create here our PHP code so I'll use this and PHP and then we will close this question mark and closing a now we will write some code here so I'll Echo here angle chords or double quotes you can use both so I'll use a welcome to PHP and here I'll use a br tag so via and I'll close this one and now I'll put semicolon here now here I will Echo date and I'll put a semicolon here now I need to provide a format inside this so I'll provide this format so now it is okay now if I right click here and run this PHP as our project now if I click on this so it is saying me that PHP is not pound so uh we have installed them server and we have PHP in that so we will go to this folder and now I'll expand this now I'll go to this PC and receive folder and see I have the same and in them we have this PHP so we will open this PHP folder and now I'll copy this now I'll close this and now we will close this as well and now I'll right click on this window and now we will go to settings and settings I'll go down and I'll go to about and advanced system setting and environment variable so now we have to add our PHP into the path so I'll click on this path this one and now I'll edit this and I'll add a new one and now I'll control it here now I'll click ok click OK this one and click OK here now I'll close this one now I have to restart this Visual Studio code first I will go here and close this and now we will restart this now it is restarted so now I'll right click here and now file uh PHP server server project I'll click on this now you can see nothing is showing up here but our PHP is running so I'll come here we will have an issue here now if we come here and we check this so now we have this uh issue in this time format so I'll make this uh I'll remove this remove this and remove this as well so we will create only that so I'll control sh and now if I stop this server and now if I rerun this again so now you can see welcome to PHP and then we have the date today is dead so in this way you can run a PHP and a visual studio code so I think that's all for today I hope you like the video if you like the video please like subscribe and comment thank you
Info
Channel: Programming Guru
Views: 106,316
Rating: undefined out of 5
Keywords: how to run php using visual studio code 2023, run php script in vscode, running php in vscode, Run php in visual studio code, php visual studio code, vscode and php, run php in visual studio code, php vscode example, php and visual studio code, how to run php in visual studio code, php vscode, how to install php in visual studio code, php in vscode, how to use php in visual studio code, php and vscode demo, php tutorial with vscode, php, vs code, vscode, Visual studio code 2022
Id: zT6QrGIfXaU
Channel Id: undefined
Length: 5min 34sec (334 seconds)
Published: Thu Dec 22 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.