You are not logged in.
Firefox on windows will display a local .php webpage as a regular html page. Great for us who write website locally then upload them. Not so on Linux. The only way is to rename the page to .php.html, or run a web server.
Even naming a empty text file as .php still wont let firefox open it.
Despite messing with firebox's mimeTypes.rdf and research this extensively, no joy. Please, has anyone on here acually done this or is the Linux version of Firefox simply not built to open .php named local files?
Offline
Firefox on Linux will open PHP files just fine for me here. I have a few local websites running and can hit any PHP page and they run fine. Am I misunderstanding the problem? Also, a "real" PHP page -- with PHP code in it -- should not run with the extension ".html" AFAIK, without just showing the "text" of the file. Sounds like something wonky is going on.
I also assume that you have Apache or some other web server actually SERVING the PHP files on Linux, right? Firefox itself doesn't process PHP files, the web server does and renders the HTML that Firefox then shows.
Are you running the Linux PHP file on YOUR ARCH MACHINE, or are you running these PHP files on some web host somewhere?
Last edited by mrunion (2014-03-11 18:05:27)
Matt
"It is very difficult to educate the educated."
Offline
If you want to develop your site locally without the need of a huge server, try the php-internal server.
http://php.net/manual/en/features.comma … server.php
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline