Forum Moderators: open

Message Too Old, No Replies

View .php & .shtml files local in IE

Don't need it to parse, just not show as text only

         

LunaC

3:39 pm on Sep 25, 2006 (gmt 0)

10+ Year Member



I had to do an emergency reformat this weekend and lost my registry edit back up that lets Explorer (Win XP SP2) show the contents of a .php or .shtml file locally.

Right now it just opens it as a text file, even plain html won't work on local files that are named .php or .shtml.

Before anyone just says just "Use (name any better browser)", I do for my default I use Firefox, Opera is my back up... but I need to check files on IE before I upload to make sure there's no obvious error since the majority of visitors use it.

Does anyone know what to edit, and where to find it?

LunaC

4:08 pm on Sep 25, 2006 (gmt 0)

10+ Year Member



Nevermind, I figured it out.

In case anyone ever needs this, it's in HKEY_CLASSES_Root
go to php folder, add new string value Content Type, modify value data to text/html

Same for .shtml, after that it will open just fine in IE locally. Of course it won't parse code, but if you need to view a page that is mostly html anyway, it's handy.