Previewing php pages in IE

D

dontor

I am using Front Page 2003. The pages will be php extension, not the html
or htm. I can see the work with the design, code, preview just fine. When
I preview in IE, all I see is the code. How do I fix that?
 
T

Thomas A. Rowe

View the pages directly from a web server running the php engine.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
M

Mark Fitzpatrick

The file is not being processed by a web server, which is what PHP is
intended for. Web browsers use what's known as a MIME type to display pages.
The web server will send the web browser a MIME type with the file. Sine PHP
is not a standard item included with IE, IE doesn't know how to interpret
the file extension so it simply displays it as text. The best thing is to
run it through a web server with a PHP processor. If you're running IIS, you
can get one through the PHP group at http://www.php.net

I don't know if it would work, but you could try creating a file association
in Windows Explorer under Tools | Folder Options | File Types for the PHP
extension and copy the settings for the HTM extension to open with IE. It's
a longshot, but you never know.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
A

Andrew Murray

View it in your browser - and publish the page first - it is a "server side"
script and won't work just viewing it in Preview.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top