Hello,
I have a problem that leaves me completely desperate and frustrated:
I use VSC 1.96.4 as my HTML editor, and 3 of the extensions I have are
I also have
A further extension I use outside VSC is the
The problem is, when I write a HTML Page in VSC and preview it, there is no issue at all, but with PHP, it is a totally different kettle of fish.
When I try to preview a page and I click
The thing is, Xampp IS installed and running and as far as I am aware, the path to my php installation is correct.
(For the record, the PHP preview did not work when I had PHP from php.net installed on my system neither).
See my
Also, the path to where my PHP files are stored is correct (I assume they are entered in the right place).
In my browser, I type
I hope I have provided enough information about the problem, but I do hope someone can help me, as I have tried just about anything, have posted in different fora (usually with no replies), watched
If anyone could help, I'd be ever so grateful.
Problems with Visual Studio Code in conjunction with Xampp previewing PHP
Hello,
I have a problem that leaves me completely desperate and frustrated:
I use VSC 1.96.4 as my HTML editor, and 3 of the extensions I have are Live Server, PHP Server and PHP Intelephense.
I also have Xampp 3.3.0 installed in order to be able to preview PHP files, being in the process of learning PHP.
A further extension I use outside VSC is the Google Chrome Live Server extension.
The problem is, when I write a HTML Page in VSC and preview it, there is no issue at all, but with PHP, it is a totally different kettle of fish.
When I try to preview a page and I click "Go Live" I get the following output:
The thing is, Xampp IS installed and running and as far as I am aware, the path to my php installation is correct.
(For the record, the PHP preview did not work when I had PHP from php.net installed on my system neither).
See my settings.json for more details:
Also, the path to where my PHP files are stored is correct (I assume they are entered in the right place).
In my browser, I type localhost:5500/mysites/index.php for example.
I hope I have provided enough information about the problem, but I do hope someone can help me, as I have tried just about anything, have posted in different fora (usually with no replies), watched Youtube videos, nothing has been any help for me and the whole situation is obviously no help to me in my PHP study.
If anyone could help, I'd be ever so grateful.
2 answers
Sort by: Most helpful
-
Klauwaart 0 Reputation points
2025-01-31T14:43:06.5266667+00:00 -
Anna Xiu-MSFT 30,816 Reputation points Microsoft Vendor
2025-02-03T02:28:37.33+00:00 Hi @Klauwaart ,
Welcome to Microsoft Q&A!
The tag “Visual Studio” is related to Visual Studio product. Visual Studio and Visual Studio Code are two different products.
For more questions about Visual Studio Code, I recommend you report it in the dedicated GitHub-vscode forum where you would get support for this product.
Thanks for your understanding.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.