There is an error trying to set the php executable path in vcode.

Asked 1 weeks ago, Updated 1 weeks ago, 1 views

I set it like that when I first installed the vscode and edited the php file, I got a message asking me to set the path, but there is an error. I'm asking you a question because I don't know even if I search it I'd appreciate it if you could help me, masters.

And even if you don't set the path, there seems to be no problem in modifying and executing the php file, so I wonder if you don't have to do it.

error php vscode

2022-09-20 15:41

1 Answers

Wow! It's PHP!

1. We only have one backslash. That's why settings.json The entire JSON is breaking.
Use the two backslashes to escape accurately, like C:\\Bitnami\\blah.

2. If you set the php.exe you want in the system PATH, I don't think you need to set it separately.
First, This link so register your php.exe.
If it's registered well, open the power shell or cmd and type php-v and you'll see something similar below.

PHP 7.3.27 (cli) (built: Feb  2 2021 20:45:29) ( NTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies


2022-09-20 15:41

If you have any answers or tips


© 2022 pinfo. All rights reserved.