DEV Community

Cover image for How to Run PHP Code in Visual Studio Code Terminal | PHP Executable Path VSCODE
HMA WebDesign
HMA WebDesign

Posted on • Edited on

How to Run PHP Code in Visual Studio Code Terminal | PHP Executable Path VSCODE

In this post I will show you How to Run PHP code in visual studio code terminal console window and how to run php code directly in the visual studio code console terminal.

Can we run PHP code in Visual Studio Code?
How do I run a PHP script in terminal?
How do I run code in Visual Studio Code in terminal?

Follow these steps to run code PHP in Visual Studio Code, no configuration needed:

  1. Install the Code Runner Extension.
  2. Install PHP or XAMP on your computer.
  3. Add the PHP executable file path (C:\xampp\php\php.exe) in Code Runner JSON configuration settings.
  4. Also add same PHP executable path in windows environment variables.
  5. Open the PHP code file in VS Code Text Editor.
  6. Use shortcut (Ctrl + Alt + N), or right click the Text Editor and then click Run Code in editor context menu.

Full Video Tutorial!


𝗛𝗲𝘆, 𝗜𝗳 𝗧𝗵𝗶𝘀 𝗩𝗶𝗱𝗲𝗼 𝗶𝘀 𝗛𝗲𝗹𝗽𝗳𝘂𝗹 𝗳𝗼𝗿 𝗬𝗼𝘂, 𝗣𝗹𝗲𝗮𝘀𝗲 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗖𝗼𝗳𝗳𝗲𝗲. 𝗧𝗵𝗮𝗻𝗸 𝗬𝗼𝘂!😇

𝗟𝗶𝗻𝗸: https://www.buymeacoffee.com/hmaweb

- Read Articles!

How to Run PHP Code in VSCode Terminal Console - HMA WebDesign

how to run PHP code in the visual studio code terminal console window and how to run PHP code directly in the console terminal....

favicon hmablogs.com

Suggested Videos:

Complete User Registration & Login System with PHP and MySQL Database | PHP Login System

How to Create Responsive Sign Up Form with HTML5 CSS3 | How to create a signup page

Top 10 VSCODE Extensions For Web Developers | Best VSCODE Extensions 2022

How to Change Website Content in JavaScript | How to Append Text in JavaScript 2022

How to Build Vertical Tabs in HTML and CSS | Animated Vertical Tabs in HTML and JavaScript

Hoverable Responsive Dropdown HTML CSS | Hover Over Dropdown Menu HTML CSS

10 Ways How to Center a Div Vertically in Another div | CSS Align Center

Top comments (0)