Oh, I see, it depends on the contents of the file.
If the file contains html code (even if it contains also php code as in my case), it opens in the browser.
This is the kind of "features" a-la-Microsoft, where the software tries to be "smart" and the result is you can't rely on it.
I attach the file. If I rename it with .php extension it opens it gedit (as expected).
Oh, I see, it depends on the contents of the file.
If the file contains html code (even if it contains also php code as in my case), it opens in the browser.
This is the kind of "features" a-la-Microsoft, where the software tries to be "smart" and the result is you can't rely on it.
I attach the file. If I rename it with .php extension it opens it gedit (as expected).