Ash_EP3
Member
Registered: 15th May 07
Location: Melksham, Wiltshire
User status: Offline
|
I am just having a spot of bother with my website I have included two include files (header & footer) but for some reason when I preview my pages using dreamweaver the include files do not appear although they are visible whilst looking at the page in design view (using dreamweaver)
I am thinking it might be because I haven't managed the site to preview the files onto my hosting server (they are only being viewed locally)?
Any help much appreciated!
p.s if you want any code or want me to post the code I am more than happy to do so thanks
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Do you mean if you preview them in IE/Firefox or whatever it doesn't work?
What type of include are you doing?
If its an ASP or PHP include does you local server support that type of script?
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
If you are doing includes using html then you'll be using SSI. Your host might not let you use SSI without using the right file extension. If you've got something like this:
<!--#include virtual="menu.html" -->
You need to use a file extension like .shtml for it to work properly in most cases.
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Depends whether the server is configured to parse SSI.
Post the bit of source code where the include should be happening to give us a clue what you're using.
|