Chrome扩展程序PHP无法正常工作 [英] Chrome Extensions PHP not working

查看:116
本文介绍了Chrome扩展程序PHP无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Chrome扩展程序中使用PHP。我试图将background.html更改为background.php,但这不起作用。我怎么做到这一点?

I would like to use PHP in Chrome extensions. I've tried to change background.html to background.php but that doesn't work. How can I do this?

推荐答案

你不能这样做。 PHP是一种服务器端语言。这将要求你的所有用户安装一个PHP解释器,这是不可行的。也许如果您使用 Native Client ,您可以以某种方式捆绑PHP,但这很可能不值得完全可以。

You can't do this. PHP is a server-side language. This would require all your users to install a PHP interpreter, which is not feasible. Perhaps if you used Native Client you would be able to bundle PHP somehow, but that most likely wouldn't be worth it at all.

这篇关于Chrome扩展程序PHP无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆