Using $_SERVER['DOCUMENT_ROOT'] with DW [was: Can I trick Dreamweaver into...]
Is there any way to tweak Dreamweaver CS4 into knowing what exactly...
<?php include $_SERVER['DOCUMENT_ROOT'].("/includes/_footer.php") ?>
...is referring to? (In this case, nothing... /includes is located right off the root)
However, the above variable is needed for the links to work once on the server, but it also breaks things inside Dreamweaver itself.
Ironically, if I can get DW to just *ignore* $_SERVER['DOCUMENT_ROOT']. then it would work find inside DW.
Suggestions?
[Thread moved to corrrect forum and subject line edited by moderator for clarity]
