skip to Main Content

i am using laragon php version is 8.1.8 but in vscode it is 7.4.19.
image1
image2
How do I install php 8.1.8 on vscode?

How do I install php 8.1.8 on vscode?

3

Answers


  1. You will need to update your Windows Environment Variables.

    1. Start > search for Environment Variables
    2. Once open, find "Path" under the "System variables".
    3. In the list, find any existing PHP directory path, delete it.
    4. Add your new PHP 8.1.8 path. Should be something like C:laragonbinphpphp-8.1.8-Win32-vs16-x64
    5. Save, restart VSCode
    Login or Signup to reply.
    1. In console php -r "echo PHP_BINARY;"
    2. Change php.validate.executablePath in settings.json in VsCode To change the PHP settings, open your User or Workspace Settings (Ctrl+,) and type ‘php’ to filter the list of available settings. Read more
    Login or Signup to reply.
  2. Try this :

    1. Change your PHP Version image
    2. Add Laragon to Path image
    3. Sign Out/Restart your computer
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search