
"Like many, I use VS Code to write and manage code. Having recently got into PHP, I needed a means to display the results of my PHP code and discovered that the Live Server extension doesn't include PHP. I then learned that another extension, PHP Server, would allow me to display PHP content; however, I can no longer invoke Live Server by right clicking. It's still installed, but apparently there is a conflict between PHP Server and Live Server."
"I used to use WAMP, in its favour it was very easy to set up and get running. But on the down side I found it restrictive in what setup you can have. You are limited to only use Apache server and the versions of Apache, PHP and SQL are limited to what's available in their packages. Now I use Docker, which has a bit steeper learning curve to get going, but gives a lot more freedom in creating the specific setup you want,"
Live Server does not support executing PHP files. The PHP Server extension can serve PHP content inside VS Code but may interfere with Live Server's context-menu invocation. Running PHP locally requires a web server such as Apache, provided by XAMPP or WAMP, or a containerized server using Docker. XAMPP uses localhost and stores web files in an htdocs directory while allowing edits in VS Code. WAMP simplifies setup but restricts server and version choices. Docker requires more setup time but enables precise control over server, backend, and database versions. A PHP server extension can eliminate the need for Live Server.
Read at SitePoint Forums | Web Development & Design Community
Unable to calculate read time
Collection
[
|
...
]