為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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 於 修改