Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

"localhost" does not refresh. Must close and re-open.

So as I'm going through the PHP lessons, as I update my pages, save them, and refresh the page, nothing happens. Every time I do this I have close my localhost tab and reopen it for anything to take effect. Randy Hoyt, this is definitely a problem that wouldn't be covered in a video lesson.

4 Answers

Are you using a bundled program like XAMPP, WAMPP, etc or did you just install Apache?

I have MAMP installed.

Which browser? Safari, Chrome? Have you tried another browser?

I'm using Chrome since it is what I use normally and that all those who do lessons use.

And if you close and restart chrome, your php changes take effect, but not if you refresh?

I only have to close the window, but essentially, yes but it doesn't happen every time. I'm not sure what makes it decide to do that or not.

Mmm, I'm not a developer by any stretch, but it sounds like you have an issue with your Apache configuration. Maybe it's corrupt, maybe something is blocking it...I'm not sure. But it sounds like your php isn't being processed by Apache on reload.

Have you tried using the developer tools on chrome to watch and see if any server requests are made when you refresh?