ritwickdey / live-server-web-extension

It makes your existing server live. This is a browser extension that helps you to live reload feature for dynamic content (PHP, Node.js, ASP.NET -- Whatever, it doesn't matter)
https://chrome.google.com/webstore/detail/live-server-web-extension/fiegdmejfepffgpnejdinekhfieaogmj/
MIT License
808 stars 342 forks source link

Reload on localhost/php not changing the content #15

Closed KevinNowalski closed 6 years ago

KevinNowalski commented 6 years ago

I have a php file in localhost/php named index.php with this code:

echo "Hello world!
"; echo "Hello world 2!
";

My actual server address: http://localhost/php/ My live server address: http://127.0.0.1:5500/

but when I change my index.php code and save, the new code does not refresh in the browser of http://localhost/php/ like on the ritwickdey YouTube video. I used firefox and chrome web extensions. What am I missing?

Mikael-Sundstrom commented 6 years ago

Hi, I have just updated the documentation. Can you check if you have missed Step 5 that I added now. You have to put your app on the http://localhost/php/ location.

Let me know if you've tried it. If it doesn't work, I want to help you figure it out so I can update the documentation further to clarify the misunderstandings.

KevinNowalski commented 6 years ago

I put index.php in the php folder on http://localhost/php. Still no change.

Mikael-Sundstrom commented 6 years ago

Thanks for reply.

Some questions to sort things out.

  1. @ritwickdey recently wrote in issue #14, that there was a bug that broke the direct setup functionality last few days. That could be the problem when you tried. Make sure you have the latest version of the web extension, and try again.
  2. Have you started the live server in the vs code?
  3. After you started the live server, refresh the webpage on your localhost directory to initialize the browser page. It's easy to forget it.

If you have time, please return with an update whether it works, or not.

KevinNowalski commented 6 years ago

I got it to work for Firefox and Chrome! All I did was reinstall the extension for both and it works with the steps listed. Thanks.

Mikael-Sundstrom commented 6 years ago

It's good to hear and thank you for the feedback! I hope you get a good experience of this add-on.

FaycalBESS commented 4 years ago

Hello, i set-up every thing as described in the steps given but still not work, Actually, it worked with the test file and when I umped to production files... nothing I reviewd all the steps many time any chages in the meanwhile? (mac os catalina 10.15.6 / Mamp Pro 5.7 / VS Code 1.47.2 / Live-server 1.3.0)