Dreamweaver displaying includes?

Discussion in 'PHP' started by maney, Sep 10, 2007.

  1. #1
    Hey all,

    Does anybody know how I can display the contents of php includes while viewing the designer version of dreamweaver? It used to do it but it doesn't seem to want to any more. I presume theres some option I can change? It makes my web pages look 'off' when there are no includes displayed.

    Cheers
    Dan
     
    maney, Sep 10, 2007 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Try using an independant php tag for each include. For some reason they don't work when you have other php code in the same tag.

    EX:
    
    
    <?php include ("includes/head.php"); ?>
    
    <p>HTML STUFF HERE</p>
    
    <?php include ("includes/foot.php"); ?>
    
    
    PHP:
    Also you may have to play with the include path (/incldes/, ./includes/, ../includes/, includes/) a bit to get it to work properly. If you do change the path, make sure that it will still work on your server before making it live.
     
    jestep, Sep 10, 2007 IP