Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

PHP file from my computer doesn't work

  • 4 risposte
  • 1 ha questo problema
  • 1 visualizzazione
  • Ultima risposta di Aleksi Kinnunen

more options

I'm web developer and I'm making PHP based HTML pages. Then I try to open them with Firefox, Opera or Chrome, all browsers try to download the file. I'd just like to see the file in the browser. Is this possible?

I'm web developer and I'm making PHP based HTML pages. Then I try to open them with Firefox, Opera or Chrome, all browsers try to download the file. I'd just like to see the file in the browser. Is this possible?

Tutte le risposte (4)

more options

You are opening pages directly from the hard drive, i.e., file://pages/test.php? Generally speaking, you need a pre-processor to turn the PHP page into HTML. Usually this runs on a web server, either a remote server or a web server you run off your own system. I am not familiar with your OS; it might already have a web server installed that can do this.

more options

Yes. I succeeded to open the page in Opera, but it doesn't still work in Firefox or Chrome. However, I got a web server, so I can make my trials with that. Thank's for help!

more options

The handsome and helpful jscher2000 is asking a good first question. Are you opening files that are stored on a web server with PHP installed & turned on (whether that is your own computer or a remote computer)? Or are you opening files stored on a computer without PHP installed & turned on?

IF you're opening files that are on a server from which you can normally open them and see them displayed as expected, read on ...

"I'm web developer and I'm making PHP based HTML pages." Me, too :) ! Fairly recently, the same thing happened to me and my website's users. It turns out that the web server's administrator had made some changes to the server the night before, which caused PHP files (files with the extension ".php") to be offered for download instead of being rendered as web pages to the browser. As soon as I told him of the problem, fortunately, this guy knew exactly what had happened and how to fix it.

Of course, I can't promise anything regarding your server or its administrator(s), and I can't know if your problems have the same cause ... but it is worth asking your server's admin(s) about the problem.

Good Luck! (Or, "Onnea!" if I've got that right :) .)

more options

Nice Finnish! ;) However, as I said, I'm opening the file from my own computer. I've got a server with PHP support now, so I use it. On my computer, it doesn't still work though I've installed Linux Xampp.