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 |