A PHP file is simply a text file. Firefox doesn't know that a PHP file can be processed and would treat it as any other unknown text file. If you want Firefox to treat a local file as HTML than name it as HTML. If you want to process PHP than install a webserver and PHP on your computer and process it as PHP through localhost and send the HTML output with the proper headers to Firefox.
Install XAMPP, WAMP, MAMP, IIS + PHP, whatever if you want to view PHP files on your local machine.
|