VSCode에서 php를 사용한다면 실행경로에 php.exe 경로를 추가해주면 됩니다.
역시 스택오버플로우에서 친절하게 알려주시네요~^^
stackoverflow.com/questions/34182067/cannot-validate-the-php-file-the-php-program-was-not-found
"Cannot validate the php file. The php program was not found"
I'm a beginner in PHP and want to use the VS Code editor. However, when I first save my php file I get this message: Cannot validate the php file. The php program was not found. Use the 'php.
stackoverflow.com
아래는 vscode 공식사이트입니다.
code.visualstudio.com/docs/languages/php
PHP Programming with Visual Studio Code
Learn about Visual Studio Code editor features (syntax highlighting, snippets, linting) and extensions for PHP.
code.visualstudio.com
File > Preferences > Settings > 검색창에 php 검색
PHP > Validate: Excutable Path 파트에서 Edit in settings.json 클릭
{
"php.validate.executablePath": "C:/Bitnami/wampstack-7.4.10-0/php/php.exe"
}
" " 안에 자신의 php.exe 파일 경로를 넣어주면 됩니다!
'공부 기록' 카테고리의 다른 글
자바스크립트 기본 (0) | 2020.10.20 |
---|---|
화면에 php 에러 로그 보기 (0) | 2020.10.04 |
왜 intellij를 사용하는가 (0) | 2020.09.09 |
라이브러리 (0) | 2020.09.09 |
EC2 배포중에 나는 에러 (0) | 2020.08.30 |
댓글