为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Is There A Firefox Android Plugin To Open PHP Webpages ?

  • 3 个回答
  • 4 人有此问题
  • 20 次查看
  • 最后回复者为 tamjk

more options

I wanted to see how a website would look on a mobile device before I made it available online. So I copied the web files to the My Files folder on my Android phone and installed Firefox to display them. It opens .html versions of the webpages but won't open the .php versions, i.e. it opens index.html but won't open index.php.

Interestingly, if I am within index.html and I click on a link to another page that is a .php file (e.g. Pricelist.php), it DOES display that .php webpage ...

Is there a plugin that will enable "front door" access to .php webpages in Firefox Android ?

I wanted to see how a website would look on a mobile device before I made it available online. So I copied the web files to the My Files folder on my Android phone and installed Firefox to display them. It opens .html versions of the webpages but won't open the .php versions, i.e. it opens index.html but won't open index.php. Interestingly, if I am within index.html and I click on a link to another page that is a .php file (e.g. Pricelist.php), it DOES display that .php webpage ... Is there a plugin that will enable "front door" access to .php webpages in Firefox Android ?

所有回复 (3)

more options

Well if you want to view the website on mobile rather you can view the pages on any resolution by using a simple shortcut "Ctrl + Shift +M". It is a developer tool called as the responsive design view.

more options

PHP is a scripting language that is interpreted on the web server and delivered to the browser as HTML. The .php extension can be used with files that are mostly plain HTML anyway, or with files that are exclusively program code. But either way, you will have the best results viewing them on a web server instead of as locally stored files.

To answer your question: I don't know if there is an add-on to process PHP files and show them as HTML.

more options

Thanks for that idea, Varun. Unfortunately, when I did CTRL+SHIFT+M on a webpage on the PC it gives a view that's very different to what I can see on my mobile phone. Firstly, although images reduce in proportion to the viewport, the font size remains fixed. Still, it's good to know this trick.

But either way, you will have the best results viewing them on a web server instead of as locally stored files.

Is this because web servers have .php file processing software on board ? Still, it's funny how Firefox Android refuses to display a .php file when you try to access it by the file opener, yet still displays it no problem when you follow a link inside an open html webpage . . .

Maybe this points to a problem with the Android OS's file associations rather than Firefox Android . . .

Initially I tried to open this offline webpage with the Samsung browser. (I believe that this is actually a version of Google Chrome, renamed "Internet".) But this seems to refuse all attempts to open a webpage when there is no data-link . . . So I had to install another browser like Firefox Android.

So maybe it really is a (Samsung) Android issue at heart.

由tamjk于修改