FrogTheFrog
FrogTheFrog

Reputation: 1671

PHPStorm Live Edit for php or an alternative (for firefox)

PHPStorm has a nice little plugin called "Live Edit", however it works only for javascript, html, etc. Exept for php...

My question would be simple - is there any way to make it work for php on firefox? I already have local MySQL and Apache server running. Documentation say no, but who knows?

Upvotes: 1

Views: 2231

Answers (1)

FrogTheFrog
FrogTheFrog

Reputation: 1671

Just as I posted my question, I found an answer myself (happens constantly). Instead of using Live Edit I found quite a nice alternative (and on firefox too!).

What you need is "Auto Reload", a firefox plugin, which detects file changes and reloads page.

Here's a little guide (assuming that you have PHPStorm and XAMMP configured):

  1. Open plugin's settings.
  2. Create new rule.
  3. For Url type: http://localhost/<MyPage>/*
  4. For files, add file or select directory: C:\xampp\htdocs\<MyPage>
  5. Make sure autosych is enabled between PHPStorm and local server.
  6. Click Open in Browser '*.php' on XAMMP Apache
  7. Edit code and see results.

Upvotes: 3

Related Questions