Skip to main content
Participant
August 6, 2017
Question

Dreamweaver CC & php

  • August 6, 2017
  • 1 reply
  • 965 views

So I last used dreamweaver when it was cs5. In that when I'd put <?php include_once("item.inc");?> it'd allow me to see that in the live view pane and edit it like I would any file if it had html in it. Now when I do this it doesn't, it just shows me code view. How do I get that again? I want to include raw html in a different file so things still sterile.

    This topic has been closed for replies.

    1 reply

    BenPleysier
    Community Expert
    Community Expert
    August 7, 2017

    The way it used to work in previous versions of Dreamwever

    Select the server-side include in either Design view or Code view, and click Edit in the Property inspector.

    The included file opens in a new Document window.

    The work-around for the current version is to click the file in the attached-files bar as in

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    m_RodinAuthor
    Participant
    August 7, 2017

    See i use the file convention 'filename.inc' in the image you show it's filename.inc.php which has a design view ability. if i have to rename my files to include the .php at the end that's fine. I wanted more to know how to use the .inc. I'll try your answer in the morning when i get up.

    Inspiring
    August 7, 2017

    Probably not a good idea to use a period within a file name. OS usually interprets a period as indicating the end of the file name and the  file type designation. If you want some sort of visible semantic to your file names, use a hyphen or underscore between parts, or interior caps ("fileName.xxx").

    Chris