PHP in Visual Studio Code: Your first PHP project

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello to start with your new project in should studio code you will need to first find the htdocs folder in the sample installation so let's find those up installation for first - in the this VC equal to local disk then I go to Zen folder yours might be in a different location so you need to find the same installation folder once you find it go inside it and find the htdocs folder open it and then create your new project folder I will name my PHP inertial studio code that's it the new folder project folder is created now you can open visual studio code a new project folder is already open for me as I opened it before let me close it first file closed folder or control KDF then we go file open folder and find the folder we just created again local disk c sm h detox and PHP in visual studio code folder and hit select folder once the folder is opened we create our first pitch we found right-click a new file or go to the second new file and click it I will name my final index dot PHP remember the PHP extension must be used whenever creating a file that has PHP code in it [Music] this is to let the server now that this one has PHP code that needs to be executed open the file to write the first beach P code right left angle bracket question mark and write the PHP word I will call the pitch pin for function and hit semicolon to end the statement and close the PHP tag question mark and right-angled bracket to be able to run this you need to have a purchase server up and running in Sam control panel you don't know how to find Sam control panel follow this path finder zamp installation folder and inside it find Sam control open it hey we just need to start the Apache service he started wait for it to turn green if it is green it has started and is running we'll minimize this unless to open the web browser make some window arrangements first in the browser I'm right local host PHP in the Visual Studio code slash index dot PHP here is the folder name we just created and this part is the file name let's run it okay for some reason it is not working the problem is that if you see this dot here it means that the path is not saved ctrl s to save the file and I will if i refresh the page it lossless and shows the PHP information page my PHP version is seven point three point six here oops might be different depending on your some PHP installation let me close this page and back to the index.php file where better look you can move the closing tag down and have as many planes as you want or better look hit them the vocal indentation I will write echo open the parentheses and write hello they're always after each pitch V line you must close and write semicolon to end of the line don't forget to save it control us now we're upon the file in the web browser and there you a little bear is printed so we just made our first index.php strip and that's all for this video see you next time take care and bye you
Info
Channel: Tech VideoStack
Views: 217,271
Rating: undefined out of 5
Keywords: first php project in visual studio code, first php project, visual studio code php, vs code php, php vscode, vscode php, php in visual studio code, php project, create your first php file, create your first php script, run first php file, xampp apache server, apache server, xampp package, php tutorial, vs code, learn php, php tutorial for beginners, php mysql, code editor, vscode error, php tutorial for beginners full, php, learn php for beginners
Id: -ug7_JdRIqA
Channel Id: undefined
Length: 6min 20sec (380 seconds)
Published: Sat Aug 24 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.