PDA

View Full Version : Previewing *.php in Firefox


FordPrefect
03-30-2006, 11:55 AM
Whenever I try to preview a php website in Firefox it wants to load it as a script, how can I make it load it like an html?

davidj
03-30-2006, 12:00 PM
do you mean your prompted to download the page rather than see the page in your browser?

where is the page located (on host space or on your machine)?

chriskq
03-30-2006, 11:36 PM
are u trying to view it as a file or from your local?
does it look more like this http://localhost/testing/index.php
or this: file:///C:/Inetpub/wwwroot/testing/index.php

u have to view it thru ur broswer from your local.
make sure your the project folder is set up as an application in your IIS.

dthomsen8
03-31-2006, 11:28 AM
Whenever I try to preview a php website in Firefox it wants to load it as a script, how can I make it load it like an html?

Is this a PHP extension file viewed in the document window, that you are trying to preview with the Firefox browser?

I am doing that, and previewing with Opera and Netscape, as well as IE6. In my case, I am taking existing HTML files and converting <font> and other obsolete tags to CSS techniques. I rename the xxxxxx.htm file to a xxxxxx.php name, and it works just fine in the Firefox and other browsers.

Perhaps you can post an actual code example. Use the Code box to get the code posted here in the proper format.