搜尋 Mozilla 技術支援網站

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

Learn More

Why I can't make file association for .php extension using 64bits FF?

  • 2 回覆
  • 1 有這個問題
  • 2 次檢視
  • 最近回覆由 ad_verbum

more options

I can't make file association (.php extension) using 64bits Firefox. When I'm trying to make association using "Programs -> Default Programs -> Associate a file type or protocol with a program" I don't see FF on the list of available programs. If I'm selecting FF manually from its location nothing happens. If I'm using 32bits FF there is no problem. I'm working on the computer with 64 bits windows 7. I tried FF56 and also 57 with the same result.

I can't make file association (.php extension) using 64bits Firefox. When I'm trying to make association using "Programs -> Default Programs -> Associate a file type or protocol with a program" I don't see FF on the list of available programs. If I'm selecting FF manually from its location nothing happens. If I'm using 32bits FF there is no problem. I'm working on the computer with 64 bits windows 7. I tried FF56 and also 57 with the same result.

由 ad_verbum 於 修改

所有回覆 (2)

more options

If such files contain php directives then the file needs to be processed by server software. In that case the file usually gets the HTML file extension and can be opened with Firefox. If this is actually a valid HTML file then best is to rename the file and change the file extension to .html.

Note that Firefox can do nothing with php code in the file and can't process such directives, so it wouldn't make any sense to select Firefox.

more options

cor-el said

If such files contain php directives then the file needs to be processed by server software. In that case the file usually gets the HTML file extension and can be opened with Firefox. If this is actually a valid HTML file then best is to rename the file and change the file extension to .html.

I know what .php files may contain and fact that FF can't process php code. But often files with .php extension contains html code - are used as containers.

As I wrote I opened such kind of .php files with my FF since years. Problem is why I can't make file association (any kind, not only .php) with 64 bits FF. 32bits FF does that without any problem.

I resolved this problem installing both versions of FF, 32 and 64 bits. When 32 bits FF is installed, 64 bits version "learns" from 32 bits version about file association and is able to open files with .php extension. But I want to know why I can't make that with only 64bits FF installed.