Originally Posted by knudfl
1)Some php files can be opened with a browser by renaming : mv 'file.php' 'file.html'
2)Opera is known to open some php files.
I think what the OP is referring to is that directly opening a .php file in a web browser gives you the PHP code, not the page as it looks when you request it from the server. Renaming or using Opera won't help with that.
Long story short, when you request a .php page through a web server, you're not seeing the .php file - you're seeing the output of an executed PHP program. When you request the file from Apache, it sees that the file is a PHP script, runs it through the PHP interpreter, and sends you the output. When you open the file in your browser, or request it from a server that doesn't have PHP installed, it's just treated as yet another text file. So it never actually gets executed and hence does not "work".