How to run php files in browser using VS Code?

Asked

Viewed 3,294 times

3

I’m making a site in php with VS Code but I’m not being able to test the site in the browser. I even installed the extension "PHP Server" for VS Code but it still doesn’t work. Anyone can help me with this? Thanks for the force.

2 answers

2

  • Incredible, I came across this solution and expensive, I didn’t even think it was possible! Perfect solution! As much as might not be quite what @Alison would like, this would help many people who don’t want to build dependency on apache servers.

0

Instead of running VSCODE, you can also use Xampp.

Basically, Xampp creates an Apache server to run its scripts. It’s quite simple to install. After the installation just open and start the server by clicking start in the Apache module. To run the scripts, just leave them in the htdocs folder, together with where you decide to install Xampp and then access them from your localhost.

You can find it at this link: https://www.apachefriends.org/pt_br/index.html

Browser other questions tagged

You are not signed in. Login or sign up in order to post.