I'm using a .pl script on my site. Through the admin panel of the script, I can add a "header" and a "footer" that will appear on the pages the script generates. The generated pages have a .pl file extension, though I could change that to .cgi if necessary. The header and footer are saved as separate files, "1.header" and "1.footer."
My site-wide header and footer are inserted on all my .html pages with SSI. They include a couple rotating banner areas. So I really need to be able to insert "SSI" into the header and/or footer of this script, so the pages it generates will be consistent with the rest of my site.
I tried changing my .htaccess file so that .header and .footer files would be parsed for SSI, hoping the output of those files would then be inserted in the script pages. That didn't work. So does anyone else have some other ideas? I'm waiting on support from the script programmers, but I've been waiting long enough that I don't think they're going to answer this one . . .
Any ideas will be duly tried and appreciated!
Thanks,
Matthew
print "Content type=text/html\n\n";
#
$filename = "/path/to/header.htm";
#
open (HTM,"$filename");
@lines = <HTM>;
close (HTM);
foreach $line (@lines) { print "$line"; }
#
#
# do whatever comes between header and footer
#
#
$filename= "/path/to/footer.htm";
#
open (HTM,"$filename");
@lines = <HTM>;
close (HTM);
foreach $line (@lines) { print "$line"; }
#
exit;
#
# EOF
Thanks,
Matthew
Do I have enough options to do what I want