Using SSI in .CGI

They have: 52 posts

Joined: Nov 1999

Hello, everyone.
A few days ago, I installed a CGI script called Award-It. I want to blend it into my design and to make that effect I decided to use SSI... now the thing is I don't know how to make .cgi extension to support SSI. I can't really type in the whole page because the file would become really huge...
What am I supposed to do? Is there a similar command that allows SSI in CGI?
Thank You
Boris

------------------
-------------------------
Echo Web: The Web Developer's Starting Point
http://echoweb.newn.com

http://EchoWebHQ.com
WIN cash, free web hosting and up to 50,000 button exposures at http://echodev.com/contest/ in less than 60 seconds. EVERYONE IS A WINNER (seriously)!

They have: 297 posts

Joined: Apr 1999

include virtual="x.cgi" should do the job.

Malte

They have: 568 posts

Joined: Nov 1999

or you could open the file and print the contents.

open(file,"file.txt");
@file = <file>;
close(file);

print @file;

They have: 12 posts

Joined: Feb 2000

You can turn the xbithack on in a .htaccess file in the current directory so that all output from CGI scripts will be parsed as SSI. This works on apache but I am not sure about others.

add this line to the .htaccess file of the directory in which your CGI scripts reside, or wherever you want this ability.

code:

XBitHack on
[/code]

------------------
"The way that can be told is not the eternal,
 it cannot be defined or explained,
 it can only be experienced..." Ashida Kim

[This message has been edited by joshuac (edited 29 February 2000).] 

"The way that can be told is not the eternal,
it cannot be defined or explained,
it can only be experienced..." Ashida Kim

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.