The proper way to use php in vscode is to setup xampp server on your system. Once you install and setup XAMPP you will have all the features of a dedicated webserver at your fingertips. Timestamps below.
00:00 - Introduction
01:36 - Installation
03:31 - "Run as Admin" Trick
04:42 - Set Ports
05:14 - Edit httpd.conf
06:51 - Edit httpd-ssl.conf
08:01 - Running Apache
08:36 - How to Use XAMPP
10:02 - Using VSCode with XAMPP
En esta página del sitio puede ver el video en línea PHP in VSCode using XAMPP de Duración hora minuto segunda en buena calidad , que subió el usuario Chriserino Coding 21 abril 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 58,605 veces y le gustó 696 a los espectadores. Disfruta viendo!