How to Run PHP using Visual Studio Code Without XAMPP

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to my Channel today in this video we will learn how to set up install and run PHP in Visual Studio code on windows 11. so let's start so first I will go to this uh browser open this and here I will search for PHP now click on this first link and here click on downloads and from here you can I have a window machine so I will go down to this Windows downloads and here we have two versions of PHP uh non-thread shape and thread save so we will download This Thread save PHP so it will take some time to download so I will pause the video so now our PHP is downloaded so I'll click on this and show in folder now I'll right click on this and uh well extract all extract so now it is extracted so I'll rename this file uh we name this up to this PHP headphone 4 and now I'll cut this from here and now we will go to this PC and see and we will paste it here paste it right here now we have PHP so now we will go to visual studio code and we will install some extensions so I'll go here so now here we will install two extensions in this Visual Studio code first we will go to these extensions and we will install a search here for a PHP server now it is this first one and install this now PHP server is installed now I'll close this and we will search here for PHP and tele pens and which is down right here this one by bin and now we can install this so I'll click on this install so now to work this uh extension we have to go down and there is an instruction for disabling the built-in PHP uh built-in PHP file feature so uh you can see go to extension and search for at built-in PHP so I'll copy this Ctrl C this and all Ctrl V8 here and now it has such this PHP language feature and I will disable we will create a new file here so I'll go to this file explorer and here I will click on new and I'll search for uh write and text Dot PHP and hit enter now the PHP file is created and now here I'll use PHP and enter and now I'll close the PHP tag and now here we will use uh Echo hello from PHP and novel Port semicolon now control is this now I'll right click on this and PHP server is not appearing so we will reload the visual studio code so for that I will close this and now I'll reload again so now to run this project right click on this and PHP is our project so now it shows the server PHP not found and now I'll go to the folder where we have installed our PHP this PC and c and from here I'll go to this PHP and now I'll copy this path from here Ctrl C this and now I'll go here right click on this and the system and here we will go down one system settings environment variable and now I'll click here uh on the part this one and we will create new and here not new I'll edit this path I'll click on this edit this and now I'll click new and here I will paste this and click OK and OK and click ok now close this and I'll close this as well this one as well and now I'll right click and I'll use PHP saw project it is still saying that PHP not found so I'll reload this again I'll right click on this and PHP sell project and now you can see I have to open the browser and printed this uh hello prompt page I hope you like the video if you like the video please like subscribe and comment thank you
Info
Channel: Programming Guru
Views: 19,695
Rating: undefined out of 5
Keywords: how to run php in visual studio code, how to install php in visual studio code, run php in visual studio code, vscode php setup, how to setup php in visual studio code, php in visual studio code, how to run php, how to run php in visual studio code with xampp, how to run php in vscode, php, php 2023, php extension for visual studio code, vscode php, xampp installation on windows 10, how to run php in visual studio code without xampp, php vscode setup, vs code php setup
Id: etgm6WWQmBw
Channel Id: undefined
Length: 4min 2sec (242 seconds)
Published: Fri Mar 24 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.