Yes, if you need to run PHP on Live Server, you will need a local server environment like XAMPP or WAMP. These tools provide the necessary server environment to run PHP scripts locally on your computer. Once installed, you can start the server and use Live Server in VS Code to view your PHP files.
If PHP is not showing after running HTML in Live Server, ensure that you are using a local server environment like XAMPP or WAMP. Live Server in VS Code primarily works for static files (HTML, CSS, JavaScript) and does not process PHP. You need to start your local server from XAMPP or WAMP and then access your PHP files through the localhost URL provided by these tools.
I spent hours looking on youtube tutorials, reading blogs and asking chatGpt without any result ! best tutorial ever on this topic thank you ! 😄😄
Glad it helped!
I writing code for a long time and I was refreshing the page. This video helped me a lot thanks for everything
Glad it helped!
I spent hours looking on google but nothing useful , thank you so much for your time and effort
Happy to help!
awesome, php now is getting easier
Awesome, thanks!
Thanks brother, you are the best!
You're welcome!
May God bless your brother, thank you so much!
Thank you too!
Then you need to run xampp/wamp for PHP to work on Live Server?
Yes, if you need to run PHP on Live Server, you will need a local server environment like XAMPP or WAMP. These tools provide the necessary server environment to run PHP scripts locally on your computer. Once installed, you can start the server and use Live Server in VS Code to view your PHP files.
Thank you so much brother..You help me alot..
I still don't got solution why php is not showing after running html in live server
If PHP is not showing after running HTML in Live Server, ensure that you are using a local server environment like XAMPP or WAMP. Live Server in VS Code primarily works for static files (HTML, CSS, JavaScript) and does not process PHP. You need to start your local server from XAMPP or WAMP and then access your PHP files through the localhost URL provided by these tools.
Awesome thank you
Earn rep❤ and sub 🎉