I want to setup a live server for php files as in this post shown: https://stackoverflow.com/a/64542693/13872132.
The problem is I have no idea where to find the /var/www/html/
directory. I am using Windows and VS Code.
I want to setup a live server for php files as in this post shown: https://stackoverflow.com/a/64542693/13872132.
The problem is I have no idea where to find the /var/www/html/
directory. I am using Windows and VS Code.
The documentation says that, by default, it serves the workspace you are working in.
(Which makes sense, because hardcoding a test server directory into an IDE when developers generally work on different projects would be silly).
The answer you are refering to seems to be making the rather bad assumption that you'll be developing out of the main system web server directory on a Linux host (which is often /var/www/html/
). (Don't do that).