Forum Moderators: coopster

Message Too Old, No Replies

parsing PHP on HTML page.BUT getting dreamweaver to show it.

Using Server Side Includes mainly....

         

tokey666

8:01 pm on Sep 29, 2008 (gmt 0)

10+ Year Member



If I have a php page saved as .php in Dreamweaver, and use a <?php include() ?> the include is displayed in the design view.

If I have a .html page and use a <!--#include file = !> , the include file displays just fine in design view.

HOWEVER! I would like to parse PHP on my HTML pages using htaccess. SO, can I get dreamweaver to treat HTML pages as if they were PHP pages?

If I use a <?php include() on a HTML page, Dreamweaver does not display it.

So, can Dreamweaver be tricked?

Thanks!

MattAU

8:37 pm on Sep 29, 2008 (gmt 0)

10+ Year Member



I'm pretty sure if you look in Dreamweaver's settings there's an option where you can change how Dreamweaver handles each page extension. If you change .html to being a PHP page that should do it.

I haven't used Dreamweaver in a couple of years, so this may not be quite right... :)

tokey666

9:19 pm on Sep 29, 2008 (gmt 0)

10+ Year Member



haha, yeaaa I just spent a hour scouring Dreamweaver....and I could have SWORN I saw JUST what you are talking about.... but alas, I can't find it anymore..... :(

g1smd

9:39 pm on Sep 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I prefer to install Apache and PHP on to a spare machine, and then browse the website as it were live, using [localhost...] or [127.0.0.1...] - that's the closest it can be to 'live' without being public.

tokey666

8:03 pm on Oct 2, 2008 (gmt 0)

10+ Year Member



Well yes, thats true. I am not running large php functions, though, to justify that. I just would like to see my whole page, with included headers, footers, navigation and anything else I include on there whenever I am designing. I am a designer, not a coder. haha.

Anyone have any other ways to have Dreamweaver display php includes on an HTML page?