How to set PHP executable path dynamically in VSCODE?

  • | 85 points

    I have set the following configuration in my settings.json file for VS Code for PHP executable path.

    "php.validate.executablePath": "D:\\laragon\\bin\\php\\php-7.2.19-Win32-VC15-x64\\php.exe",

    However If I change the PHP Version using the Laragon GUI, how can I update the path dynamically in VSCode. Is there a way to do this?

  • | 324 points

    @4nik3t No you can't. You have to do it on your own :)

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.