HighDots Forums  

Include not working

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Include not working in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Iain71
 
Posts: n/a

Default Include not working - 08-19-2008 , 04:52 PM






Are there any reasons why an Include wouldn't work? I'd started a site on my
own web space, and it worked just fine.

I've now moved all the files over to the sites host, and uploaded it - but the
Includes no longer work.

There will be a small database element to the site, and PHP includes work OK -
would it be bad practice in any way just to save all the pages as .php?

The page is here : http://www.mph.uk.com/index.shtml

If you view the code, you can see the include code :

<!--#include file="navigation.html" -->

Any reason it's not pulling through the file?


Reply With Quote
  #2  
Old   
Nancy O
 
Posts: n/a

Default Re: Include not working - 08-19-2008 , 05:11 PM






It looks to me as if your navigation include file has an unclosed division.

<div id="navcontainer">





--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com




"Iain71" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Are there any reasons why an Include wouldn't work? I'd started a site on
my
own web space, and it worked just fine.

I've now moved all the files over to the sites host, and uploaded it -
but the
Includes no longer work.

There will be a small database element to the site, and PHP includes work
OK -
would it be bad practice in any way just to save all the pages as .php?

The page is here : http://www.mph.uk.com/index.shtml

If you view the code, you can see the include code :

!--#include file="navigation.html" --

Any reason it's not pulling through the file?




Reply With Quote
  #3  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Include not working - 08-19-2008 , 05:23 PM



Quote:
I've now moved all the files over to the sites host, and uploaded it - but
the
Includes no longer work.
1. Does the host support includes?
2. Is the parent file named with an extension that would trigger a server
parse, e.g., *.shtm(l)?

Quote:
would it be bad practice in any way just to save all the pages as .php?
No - I frequently do this.

Quote:
Any reason it's not pulling through the file?
Looks like the HTML includes are not supported.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Iain71" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Are there any reasons why an Include wouldn't work? I'd started a site on
my
own web space, and it worked just fine.

I've now moved all the files over to the sites host, and uploaded it - but
the
Includes no longer work.

There will be a small database element to the site, and PHP includes work
OK -
would it be bad practice in any way just to save all the pages as .php?

The page is here : http://www.mph.uk.com/index.shtml

If you view the code, you can see the include code :

!--#include file="navigation.html" --

Any reason it's not pulling through the file?



Reply With Quote
  #4  
Old   
Iain71
 
Posts: n/a

Default Re: Include not working - 08-19-2008 , 05:59 PM



Thanks guys - if it's a question of not being supported by the host, and
there's no downside with php, then I guess I'll just do that.

Nancy - I think there is a </div> lurking after that little bit of JS.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.