SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: PHP Includes in Dreamweaver
-
May 27, 2004, 11:12 #1
- 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
-
May 27, 2004, 12:06 #2
- 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'
-
May 27, 2004, 12:23 #3
- Join Date
- Jan 2001
- Location
- West Columbia, SC
- Posts
- 622
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks, didn't see that there!!
-
May 27, 2004, 20:19 #4
- 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?"
-
May 27, 2004, 21:07 #5
- Join Date
- Oct 2003
- Location
- Your Monitor
- Posts
- 1,146
- 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"); ?>
-
May 29, 2004, 15:46 #6
- 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