Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Using $_SERVER['DOCUMENT_ROOT'] with DW [was: Can I trick Dreamweaver into...]

Contributor ,
Jan 04, 2010 Jan 04, 2010

Copy link to clipboard

Copied

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]

TOPICS
Server side applications

Views

551
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 04, 2010 Jan 04, 2010

Copy link to clipboard

Copied

LATEST

If you create your testing server in a virtual host, Live View will display your include files correctly. However, includes that use only HTML will not be displayed in Design view.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines