HighDots Forums  

newbie question: dreamweaver and php

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss newbie question: dreamweaver and php in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ac20000
 
Posts: n/a

Default newbie question: dreamweaver and php - 11-03-2005 , 05:41 PM






Hi everyone,

I've got the following problem:
I've inserted at the top of my php page an include file, like this:
<? include ("head.php"); ?>

This file contains the doctype specification, metatags, first part of the
<head>, style sheet path etc. This usually works fine, when I use a simple Text
editor instead of dreamweaver. But I tried to do this in dreamweaver and
somehow the code got all messed up.

When I preview this in my browser, the content which was in the include file
is not parsed by php but shows up in the browser window.
I've checked the source code in my browser and dreamweaver obviously has put
its own doctype specification above the one that was in the include file. Also,
all the brackets, like "< >", of the include File have been changed to < and
dreamweaver had put a <body> above the stuff from the include file, so it's no
surprise that it didn't work at all.
I've already checked the preferences settings and have set "default document
type" to "none" but it had no effect.
When I have php files, where no include files are inserted it works, however.

Has anybody an idea how I can prevent dreamweaver from inserting its own code
as mentioned above?

Thanks in advance






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.