SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Guru
    Join Date
    Jan 2001
    Location
    West Columbia, SC
    Posts
    622
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Includes in Dreamweaver

    I usually work on PHP in Textpad, but I'm redesigning my site, so I'm using Drewamweaver. I'm building the pages with several php includes on each page. When I view the page in DW, all I see is a php icon where the include will be.

    Is there a way for DW to render that code so I can see the layout better?

    Thanks

  2. #2
    My precious!!! astericks's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, BC
    Posts
    1,971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DW MX: Besides the 'Code | Spit | Design options [top left], there is an option fo rlive data view, look for the icon with a lightning bolt on it.

    or in Help, search for 'Live Data window'

  3. #3
    SitePoint Guru
    Join Date
    Jan 2001
    Location
    West Columbia, SC
    Posts
    622
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, didn't see that there!!

  4. #4
    SitePoint Addict Mower's Avatar
    Join Date
    Feb 2004
    Location
    Aussie Aussie Aussie
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    live data window can be a pain... dreamweaver is better at SSI, so i usaly use that then change on final testing...


    "Will I ever find my way to GURU?"

  5. #5
    Are You There? KDesigns's Avatar
    Join Date
    Oct 2003
    Location
    Your Monitor
    Posts
    1,147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure if your problem is fixed yet, but if you double quote the include Dreamweaver shows it for some reason...

    PHP Code:

    <?php include("filename.php"); ?>
    Sounds crazy, but it works!
    ChooseDaily.com - Follow on Twitter
    Top Resources for Web Designers and Developers Every Day!

  6. #6
    Object Not Found junjun's Avatar
    Join Date
    Mar 2002
    Location
    northern MI
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are using .inc files for this, Dreamweaver does not recognize this extension. (not sure about Dreamweaver MX 2004, if that is the one you are using).

    http://www.domedia.org/oveklykken/dr...-inc-phtml.php
    gives a step-by-step approach.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •