Closed Thread Icon

Preserved Topic: SSI Probs (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17800" title="Pages that link to Preserved Topic: SSI Probs (Page 1 of 1)" rel="nofollow" >Preserved Topic: SSI Probs <span class="small">(Page 1 of 1)</span>\

 
Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 06-09-2000 03:59

Hey! Now I'm having a problem with SSI. Just the one tag is all I need, and that one bloody tag won't work. I need to use the include tag to include a pair of tables of mission statements and news updates into both my frames and non-frames pages, and so I want to use SSI to automatically update both of them by altering the source page. The tag I enetered was

<!--#include virtual="front.htm" -->

Can anyone see a problem with that?

Thanx




Lepricosa...The Leprosy Ointment. For when your not half the man you used to be.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 06-09-2000 04:27

L? or u could be using a unix system...



[This message has been edited by WarMage (edited 09-06-2000).]

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 06-09-2000 07:30

The page has a .shtml extension, right?

Pat Richard
Web weenie

Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 06-09-2000 15:54

Have you tried this?

<!--#include file="front.htm" -->


Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 06-09-2000 16:10

1. It's windows 98
2. Yes it does have a .shtml extension, does it matter that it is being loaded as one of the frames in a frames page?
3. No I haven't tried that, but i will and I'll get back to you on it.




Lepricosa...The Leprosy Ointment. For when your not half the man you used to be.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 06-09-2000 18:11

Ok, I ran into something that is a little strange.

My pages, all of them are labled HTML. The server side includes still work. Each page has an include for both the navigation and the copyrite information.

I am not sure as to why this is like this. I checked the page in both IE and NS and they both worked perfectly.

Anyone have any ideas on this.

If you want to see it for yourself the address is HTTP://flrba.cjb.net or directly at http://www.frontiernet.net/~flrba/

Anyone know why this is working without the .shtml and then second will there be any problems with how this is set up in the future.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 06-09-2000 20:05

The server could be set to parse all pages. This would slow down performance a little, but not much, and probably not noticeable on low and medium traffic sites.

Pat Richard
Web weenie

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 06-09-2000 20:06

Skaarjj, SSI might not be enabled on your server. Has SSI ever worked? If not, check with the administrator/provider and see if you can get it to work.

Pat Richard
Web weenie

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 06-09-2000 22:20

Well, first off, you will need to have your SysAdmin activate SSI for you. They may not want to at first, it can be a potential abuse problem, and impact server speed on a busy server. Sometimes they can set the XbitHack option to true, this would let all HTML and SHTML documents be parsed, although they frequently have to be set to be executable (chmod a+x filename.html). If SSIs are not turned on, think about what that tag looks like, a commented out bit of code! If that's the case, you'll be able to view the tag in your 'view source'. So! Try this...

Save the document as front.shtml, and see if it works.

Change the tag to <!--#include file="front.htm" -->, that's the syntax for an RELATIVE pointer to the included document.

<!--#include virtual="/front.htm" --> should be the syntax for an ABSOLUTE pointer to a document.

Got UNIX command line? Open it up, CD to the proper directory, and do a 'ls -al', this will show you the permissions of that file. Set it to be executable with the 'chmod a+x front.htm' command.

Should work if it's turned on. Many of the more advanced XSSI commands will only work in Apache, too.

Your pal, -doc-<P>

[This message has been edited by DocOzone (edited 09-06-2000).]

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 06-10-2000 03:33

Well...At the moment this is on my computer, being tested with my browsers, who both support SSI, so I don't have problems with it not being supported.




Lepricosa...The Leprosy Ointment. For when your not half the man you used to be.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 06-10-2000 17:17

Well, if you're testing it on your local workstation, it's not going to work, since nothing is parsing the page and executing script. Your code is correct, assuming the included page is in the same directory as the one calling it. Until you get it onto a server that supports SSI, you won't be able to see it.

Pat Richard
Web weenie

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 06-11-2000 02:04

Yah. what he said. If you test this on your own machine, it's just a commented out bit of code. You have to post it and test it on a server, it's called SERVER side include for a reason!

Your pal, -doc-<P>

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 06-11-2000 13:51

Ok, I get the picture...DUH! Me fail Engliss? That's Umpossible! No it ain't. I'm still new to most of this HTML:, SSI, CSS, JavaScript (which I am now learning Slime!) and all this other stuff, so forgive me if I make mistakes on obvious little things like this. Does anyone know of a server where I could put this to try it out?




Lepricosa...The Leprosy Ointment. For when your not half the man you used to be.

MayorTommy
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2000

posted posted 06-12-2000 23:41


I'd set up a free webhosting account on http://www.virtualave.com to
try your page out.
I doubt most free hosts allow server side includes but that one allows
free hosting clients to run cgi scripts so there is a good chance they
also allow ssi's.

Tommy

« BackwardsOnwards »

Show Forum Drop Down Menu