Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP #7

Closed
PawelPatyk opened this issue Dec 18, 2018 · 6 comments
Closed

PHP #7

PawelPatyk opened this issue Dec 18, 2018 · 6 comments

Comments

@PawelPatyk
Copy link

How can you add support for PHP files?

@robisadev
Copy link

robisadev commented Dec 18, 2018

@PawelPatyk I have only found using wildcards to work http://domain/*

@robisadev
Copy link

@PawelPatyk I have only found using wildcards to work http://domain/*

I should note that I stopped using this as it was causing constant refreshes when using some JS

@blaise-io
Copy link
Owner

@PawelPatyk @kilevvri1 You can indeed repeat the Host URL in the Source URLs field (with or without wildcards) and the page will monitor itself. For example, if the page is http://127.0.0.1/pages/contact.php, you can put http://127.0.0.1/pages/contact.php in both fields and it will refresh the page if the php-generated contact page contains a change.

If you serve static files on the same domain you can put http://127.0.0.1/* in the Host URL field and multiple URL patterns in the Source URLs field that don't include the static files, like http://127.0.0.1/*.php, or http://127.0.0.1/pages/*, or http://127.0.0.1/contact/*+http://127.0.0.1/articles/*+http://127.0.0.1/blog/*.

Blacklist patterns are currently not supported.

It's not possible to monitor local (php) files, see #3.

@robisadev
Copy link

@blaise-io You say it's not possible but I use Grunt and the LiveReload Chrome extension and that does it quite nicely. I had hoped that I wouldn't have to run grunt every time I needed to monitor changes to .js, .php and .css with live-reload but but it hasn't been consistent. Thanks for the work anyways.

@blaise-io
Copy link
Owner

blaise-io commented Dec 18, 2018

@kilevvri1 LiveReload uses additional software to monitor local files that you have to install manually.

@robisadev
Copy link

@blaise-io Didn't know that. Oh well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants