Reputation: 526
If I put PHP script in the "data" directory can I use it in my Firefox add-on?
Upvotes: 2
Views: 961
Reputation: 161
Firefox CANNOT use php in extension directly, unless you indirectly call your php code via XPCOM or other workaround.
Upvotes: 1
Reputation: 29959
Firefox add-ons can only execute JavaScript. This still leaves you with a few options:
(I just googled those links and have no idea how well they work, there probably are better alternatives)
A rewrite of the PHP code is the only clean way in my opinion. Carefully migrating the most basic code with a transpiler might save some time though.
Upvotes: 3