Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Opening php files offline with firefox

more options

Firefox 137.0.2 64 bit

I've recently set up on a new desktop running windows 11.

My previous setup had windows 10, but the same version of Firefox.

In the past, when building web pages in php, I'd always used Firefox to preview the html elements of pages offline. I've not used a testing server on Windows as I'd rather test the PHP elements on the live server. Firefox was just for testing the html / css design elements, which it worked very well for.

Now, on my new computer and windows 11, when I try to open a php page offline with Firefox I get a window asking me what to do with the file - "open with" or "save file". When I choose "open with" and choose Firefox, Firefox opens up another tab with the address of the file in the address bar, but no content below, and then another window pops up asking me what I want to do with the file. This goes on indeffinately if I keep clicking "open with". There's no issue with the files I'm trying to open as I can open the exact same files on my win 10 computer with the same Firefox version and the display just fine. What's going on?

Firefox 137.0.2 64 bit I've recently set up on a new desktop running windows 11. My previous setup had windows 10, but the same version of Firefox. In the past, when building web pages in php, I'd always used Firefox to preview the html elements of pages offline. I've not used a testing server on Windows as I'd rather test the PHP elements on the live server. Firefox was just for testing the html / css design elements, which it worked very well for. Now, on my new computer and windows 11, when I try to open a php page offline with Firefox I get a window asking me what to do with the file - "open with" or "save file". When I choose "open with" and choose Firefox, Firefox opens up another tab with the address of the file in the address bar, but no content below, and then another window pops up asking me what I want to do with the file. This goes on indeffinately if I keep clicking "open with". There's no issue with the files I'm trying to open as I can open the exact same files on my win 10 computer with the same Firefox version and the display just fine. What's going on?

All Replies (1)

more options

It's an odd one, because I think I remember having this issue years ago. I could only preview files by changing the suffixes to html and then I had to change them back to php before uploading the the web server. But I did solve it and I can't remember how. I've found that I have this issue now with other browsers too - Chrome and Edge - so actually it may be more of a Windows issue than a Firefox one, but I'm not sure where to go with that.

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.