Error Visual Studio Code: “PHP executable not found”

PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath setting

Solución Windows 10 – XAMPP

  1. File – Preferences – Settings – User Settings – Options: Abrir settings.json
  2. Agregar el siguiente código:
{
    "php.validate.executablePath": "C:\\xampp\\php\\php.exe",
    "php.executablePath": "C:\\xampp\\php\\php.exe"
}

Solución Windows 10 -WAMP

{
    "php.validate.executablePath": "C:\\wamp64\\bin\\php\\php7.0.4\\php.exe",
    "php.executablePath": "C:\\wamp64\\bin\\php\\php7.0.4\\php.exe"
}

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *