HighDots Forums  

Server Side Includes Problem

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Server Side Includes Problem in the Macromedia Dreamweaver forum.



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

Default Server Side Includes Problem - 08-31-2004 , 04:50 PM






http://www.jimmy-ez.com/NewWebsite/index2.shtm
http://www.jimmy-ez.com/NewWebsite/index.shtm

I am just learning how to use Server Side Includes, but am having problems
with the includes at the URL above. Can someone please take a look at the
two URLs/source code and help me figure out why this is not working? I
called the hosting provider, IpowerWeb to see if they support SSI, and they
said that they do... so I'm not sure why the code isn't getting
automatically including the html SSI includes.

The two pages of code have the following snippets:

<!--#include file="top.ssi" --> (in the index.shtm file)
or
<!--#include file="top.shtm"--> (in the index2.shtm file)

I tried both as I found two different SSI tutorials, once saying to name the
include files with .ssi the other to name them with .shtm.

Are either of these correct? Is it an issue with my code or a server
limitation?

Thanks for any help!!

Idelle


Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: Server Side Includes Problem - 08-31-2004 , 04:59 PM






Quote:
Are either of these correct? Is it an issue with my code or a server
limitation?
You can name it myinlude.monkeybutt if you want. The extension of the
included file is irrelevant.

The extension of the file that contains the include MAY be relevant. It all
depends on how the ISP has set up the server. The server needs to know which
files have includes.

Now, a competent server admin will just set it up so that ANY file will be
processed for SSIs automatically. However, a lot of ISPs will do the dumb
thing and only let you use includes in files that end in '.shtml'

The problem is that you are trying to send '.ssi' and '.shtm' files as html
files. Your server apparently doesn't recognize either of those file types
and is sending them as "text/plain" files will just show up as text files in
Mozilla.

Try using .htm, .html or .shtml and see if that resolves the issue.

-Darrel







Reply With Quote
  #3  
Old   
Alan
 
Posts: n/a

Default Re: Server Side Includes Problem - 08-31-2004 , 05:06 PM



the include directive is visible in the source code.
So- the files have not been parsed for SSI before being sent by the server.

Try renaming the files to .shtml
*i mean rename index.shtm to index.shtml

it doesn't really matter what file extension you use on the includED files,
but suggest using .html to make it simpler.

it DOES matter what file extension you using on files you use the included
IN. The files with includes IN them must have a file extension that tells
the server to parse them for includes before delivery.


Quote:
The two pages of code have the following snippets:

!--#include file="top.ssi" --> (in the index.shtm file)
or
!--#include file="top.shtm"--> (in the index2.shtm file)


Reply With Quote
  #4  
Old   
Idelle Jones
 
Posts: n/a

Default Re: Server Side Includes Problem - 08-31-2004 , 05:21 PM



THANK YOU!

I changed the name of the index file that has the includes code within it,
and it fixed the problem!

http://www.jimmy-ez.com/NewWebsite/index.shtml

Previously, the file was named index.shtm -- when I changed it to
index.shtml, suddenly the includes popped up correctly! It's a shame that
the IPowerWeb tech support didn't know that this had to be done - it would
have saved me hours of troubleshooting! Thank you again-

Idelle

Quote:
From: "darrel" <notreal (AT) hotmail (DOT) com
Reply-To: "darrel" <notreal (AT) hotmail (DOT) com
Newsgroups: macromedia.dreamweaver
Date: Tue, 31 Aug 2004 15:59:27 -0500
Subject: Re: Server Side Includes Problem

Are either of these correct? Is it an issue with my code or a server
limitation?

You can name it myinlude.monkeybutt if you want. The extension of the
included file is irrelevant.

The extension of the file that contains the include MAY be relevant. It all
depends on how the ISP has set up the server. The server needs to know which
files have includes.

Now, a competent server admin will just set it up so that ANY file will be
processed for SSIs automatically. However, a lot of ISPs will do the dumb
thing and only let you use includes in files that end in '.shtml'

The problem is that you are trying to send '.ssi' and '.shtm' files as html
files. Your server apparently doesn't recognize either of those file types
and is sending them as "text/plain" files will just show up as text files in
Mozilla.

Try using .htm, .html or .shtml and see if that resolves the issue.

-Darrel







Reply With Quote
  #5  
Old   
Mark Morse
 
Posts: n/a

Default Re: Server Side Includes Problem - 08-31-2004 , 07:34 PM



That's interesting. I use ipowerweb to host my personal site. I asked them
about includes some time back and they said I had to use .php extensions and
write the include statement using php for includes to work on their servers.

mark

Quote:
THANK YOU!

I changed the name of the index file that has the includes code within it,
and it fixed the problem!

http://www.jimmy-ez.com/NewWebsite/index.shtml

Previously, the file was named index.shtm -- when I changed it to
index.shtml, suddenly the includes popped up correctly! It's a shame that
the IPowerWeb tech support didn't know that this had to be done - it would
have saved me hours of troubleshooting! Thank you again-

Idelle

From: "darrel" <notreal (AT) hotmail (DOT) com
Reply-To: "darrel" <notreal (AT) hotmail (DOT) com
Newsgroups: macromedia.dreamweaver
Date: Tue, 31 Aug 2004 15:59:27 -0500
Subject: Re: Server Side Includes Problem

Are either of these correct? Is it an issue with my code or a server
limitation?

You can name it myinlude.monkeybutt if you want. The extension of the
included file is irrelevant.

The extension of the file that contains the include MAY be relevant. It all
depends on how the ISP has set up the server. The server needs to know which
files have includes.

Now, a competent server admin will just set it up so that ANY file will be
processed for SSIs automatically. However, a lot of ISPs will do the dumb
thing and only let you use includes in files that end in '.shtml'

The problem is that you are trying to send '.ssi' and '.shtm' files as html
files. Your server apparently doesn't recognize either of those file types
and is sending them as "text/plain" files will just show up as text files in
Mozilla.

Try using .htm, .html or .shtml and see if that resolves the issue.

-Darrel









Reply With Quote
  #6  
Old   
Mark Morse
 
Posts: n/a

Default Re: Server Side Includes Problem - 08-31-2004 , 07:37 PM



Does this apply to servers running IIS? Can you use something other than
asp?
Thanks
mark

Quote:
Are either of these correct? Is it an issue with my code or a server
limitation?

You can name it myinlude.monkeybutt if you want. The extension of the
included file is irrelevant.

The extension of the file that contains the include MAY be relevant. It all
depends on how the ISP has set up the server. The server needs to know which
files have includes.

Now, a competent server admin will just set it up so that ANY file will be
processed for SSIs automatically. However, a lot of ISPs will do the dumb
thing and only let you use includes in files that end in '.shtml'

The problem is that you are trying to send '.ssi' and '.shtm' files as html
files. Your server apparently doesn't recognize either of those file types
and is sending them as "text/plain" files will just show up as text files in
Mozilla.

Try using .htm, .html or .shtml and see if that resolves the issue.

-Darrel








Reply With Quote
  #7  
Old   
Kindler Chase
 
Posts: n/a

Default Re: Server Side Includes Problem - 09-01-2004 , 02:53 AM



Mark Morse wrote:
Quote:
Does this apply to servers running IIS? Can you use something other
than asp?
Yes. Just ask your host what file extensions will process includes. If there
is a particular extension you want to process includes, i.e.,
myinclude.monkeybutt, then ask your host if they will add the .monkeybutt
extension as well.

--
kindler chase
http://www.ncubed.com
Grooving with SuperInvoice

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
  #8  
Old   
Mad Dog
 
Posts: n/a

Default Re: Server Side Includes Problem - 09-01-2004 , 03:34 AM



Kindler Chase wrote:
Quote:
ask your host if they will add the .monkeybutt extension as well.
Do monkeybutts really need extensions? Aren't they big enough as it is?




Reply With Quote
  #9  
Old   
Kindler Chase
 
Posts: n/a

Default Re: Server Side Includes Problem - 09-01-2004 , 10:47 AM



Mad Dog wrote:
Quote:
Kindler Chase wrote:
ask your host if they will add the .monkeybutt extension as well.

Do monkeybutts really need extensions? Aren't they big enough as it
is?
Hmmmm.... may need to redirect to darrel...

--
kindler chase
http://www.ncubed.com
Home of SuperInvoice: The Online Invoicing Application.
Organize your billing process and impress your clients.

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
  #10  
Old   
Mark Morse
 
Posts: n/a

Default Re: Server Side Includes Problem - 09-01-2004 , 12:26 PM



Thanks Kindler but I was asking how to configure IIS to accomplish this.

mark

Quote:
Mark Morse wrote:
Does this apply to servers running IIS? Can you use something other
than asp?

Yes. Just ask your host what file extensions will process includes. If there
is a particular extension you want to process includes, i.e.,
myinclude.monkeybutt, then ask your host if they will add the .monkeybutt
extension as well.



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 - 2009, Jelsoft Enterprises Ltd.