Welcome to WebmasterWorld Guest from 54.85.162.213

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

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

Using Server Side Includes mainly....

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

New User

10+ Year Member

joined:Oct 14, 2007
posts: 38
votes: 0


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!

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

Junior Member

10+ Year Member

joined:June 6, 2005
posts:109
votes: 0


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... :)

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

New User

10+ Year Member

joined:Oct 14, 2007
posts: 38
votes: 0


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..... :(
9:39 pm on Sept 29, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


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.
8:03 pm on Oct 2, 2008 (gmt 0)

New User

10+ Year Member

joined:Oct 14, 2007
posts: 38
votes: 0


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?

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members