Hmm, so he wants the CGI script to generate a HTML page, and that page to have SSI tags in it. So then it WOULD be the include virtual tag, just that it's not supported by a lot of hosts.
I have a script that does the same, and has SSI tags. And it works, except its on Virtualave at the moment while I test everything out, so I guess thats why it works now. (btw, thats the plasticsword.com site, theres a link on the main page to the script in question)
Though my other site, 3wrestle.com has a similar script, and to include simple text files I used this code.
Code:
open (FILE,"/path/to/file.txt");
@file = <FILE>;
close(FILE);
foreach $line (@file) {
print "$line";
}
Theres probably another way to do it, but... my Perl book is still in the mail, silly Amazon.com
Also, in the documentation for WebAdverts (dunno if this is what you are using) it says for including ads.pl into CGI scripts, the code should be:
Code:
print "<P>Stuff to appear above the banner.\n";
print "<CENTER><P>\n";
$ADVNoPrint = 1;
$ADVQuery = "";
require "/full/path/to/ads.pl";
print "</CENTER>\n";
print "<P>Stuff to appear below the banner.\n";
WebAdverts Documentation
"The $ADVNoPrint variable is an addition necessary in this case to suppress the printing of the "content type" line; the $ADVQuery null definition will ensure there are no conflicts between WebAdverts and any QUERY_STRING info your other script may use.)"