title: How to run PHP code from Visual Studio Code (VSCode)?
body: <p>I can't find a way to run php on Visual studio code, Does anyone know how?</p>
  
  <p><strong>Duplicate:</strong></p>
  
  <p>Yes it is but a little bit different from <a href="https://stackoverflow.com/questions/29960999/how-to-run-or-debug-php-on-visual-studio-code-vscode">here</a>.</p>
  
  <p><strong>Steps:</strong></p>
  
  <p>I followed below steps to configure php in VS Code.</p>
  
  <ol>
  <li>Configure PHP linting in user settings
  <a href="https://i.stack.imgur.com/2XaiA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2XaiA.png" alt="enter image description here"></a></li>
  <li>Install Php Debug extension in VSCode</li>
  <li>Then configure php.ini file
  <a href="https://i.stack.imgur.com/fn3DP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fn3DP.png" alt="enter image description here"></a></li>
  <li>Create a external php file in root folder</li>
  <li>add <code>&lt;? echo "My First PHP site in VSCode."; ?&gt;</code> in external php file which I created now</li>
  <li>In my index.html file I referenced my php file like:
  <a href="https://i.stack.imgur.com/0YHWe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0YHWe.png" alt="enter image description here"></a></li>
  <li>Run my web server apache using xampp control panel </li>
  <li>Build my project and run it on web browser it shows me nothing.</li>
  <li>Also when I open dev tools of my chrome browser its shows me my php code of index file commented. why? I don't know.
  <a href="https://i.stack.imgur.com/h9VS2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/h9VS2.png" alt="enter image description here"></a></li>
  </ol>
  
  <p><strong>Question:</strong></p>
  
  <p>What I am doing wrong in my above steps to configure php in vs code. Please explain me in easy steps so I can easily achieve my goal. Thanks in advance. </p>