Preview PHP page in Browser

D

deacon

I have been working on php files in Front Page 2003 using the "open as html"
option. This allows me to edit the html portions of the page using the Front
Page WYSIWYG interface. When I am all done working on the page, I would like
to preview it in the browser but it displays in "code view" in IE when the
browser opens. Is there any way around this or do I have to publish the page
to the server to actually see what it will look like in the IE browser?
 
T

Thomas A. Rowe

You have to publish/upload the page to a server that has support for PHP. Since PHP is a server-side
scripting language it must be viewed from a web server.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
D

deacon

That was my initial thought too, however, after messing around with this a
bit I found that the page displays ok with a PHP extension in both the
Netscape and Mozilla Fire Fox browsers so I am wondering why that is?
 
T

Thomas A. Rowe

At least on my desktop under Windows XP with MS Picture It! and MS Digital Image Pro installed, PHP
is one of the default document types for these two application, so a file with a PHP extensions will
not open in IE, but can be associated to open in either Opera or FireFox, etc.

IE has no problem when the PHP page is accessed from a web server that has PHP support installed.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
D

deacon

Thanks TA........Since I can view the page in Mozilla, that will work for me.
I was just curios about the difference in the two browsers.
 
P

P C

What people meant is that in order for the script to run and the page to
display correctly, you must load the page through the server in order
for the script to be executed.

All browsers can display pages with script although they may have
different behaviors when deciding what to do with it (ignore it or
display it).

....PC
 

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