Home > OS >  Error while running a php code in vs code
Error while running a php code in vs code

Time:01-23

Error image

An error show's that the php executable not found and add it to your path

CodePudding user response:

Step 1: First, we have to download PHP from it’s enter image description here

CodePudding user response:

you didn't set php as a local variable to use it in CLI, so:

  1. Click the Advanced system settings link.
  2. Click Environment Variables. ...
  3. Duble click on PATH
  4. click new and write your PHP path (EX: C:\wamp\bin\php\php8.0.11)
  •  Tags:  
  • Related