r/PHPhelp • u/Bikes_are_amazing • Nov 05 '25
Solved Browser wont update then I save changes in my php file (XAMPP)
Hi, i'm a complete beginner to PHP and XAMPP.
My XAMPP server in chrome is not updating then i save changes in my php file in vs code. I've installed the live server web extension and put in my actuall server address and live server address. I've also closed and opened the browser i did not work. And i've made sure my XAMPP control panel has started running the Apache app and MySQL app.
I also know i can update by pressing ctrl + f5 but it is would be so much nicer if the live server updated just by new saves to the php file.
Help is very appreciated.
3
u/martoxdlol Nov 05 '25
Are you referring to hot reload? In general when you update the source of a page you need to reload it to see the changes. That is normal behavior. Some modern frameworks do this automatically but a PHP site doesn't (unless you use something specific to do so).
2
u/Mastodont_XXX Nov 05 '25
What you see in browser, is result of client's request - server responds with page. You must send new request (reload).
2
u/Fair-Parking9236 Nov 05 '25
Why as a complete beginner, are you even installing such extention? Why make your life complicated? You dont need any extra extention to do programming. Every single thing in your php code will reflect your browser with a simple click of refresh button.
2
u/MateusAzevedo Nov 05 '25
Don't use that extension for PHP development, it doesn't work, it doesn't even support
POSTrequests by default! Just search "live server" in this sub and you'll see a bunch of people having problems with it.Hot reloading isn't a common thing in PHP and as a beginner, it just complicates things unnecessarily. Just make sure you're sending requests through "XAMPP" (Apache) and reload manually as needed. Think about hot reloading later on when you have more experience and understanding about the tools.
1
u/Anxious-Insurance-91 Nov 05 '25
just use vite to watch your code for changes and hot-reload. ask google gemini to help you set it up