hi all,
I've been using the following for a while now to embed ssi's into html.pl.....
sub include {
# --------------------------------------------------------
# This is text to include. Use like an SSI.
my $file = shift;
open (FILE, "$file") or die "Can't open $file ($!)";
print <FILE>;
close FILE;
}
The code to embed where u want is......
|; &include ("../../header.html"); print qq| for example.
This has been working fine, but i need (or i think i do..?) to embed a different type of ssi. I have installed the What's New MOD. I want a small list of the last 15 what's new items to show in a little side menu. I can do it from an html page, no problem (as per url below). How would i go about calling in the following from the html.pl, it's not quite working.......?
|; &include ("/cgi-local/dbman/db.cgi?db=ssi&uid=default&listnew=1&view_records=1"); print qq|
I hope this is clear as mud!!!! I've included the url for u to see.
http://www.englishcivilwar.net/adv_search.shtml
thanks in advance.........
I've been using the following for a while now to embed ssi's into html.pl.....
sub include {
# --------------------------------------------------------
# This is text to include. Use like an SSI.
my $file = shift;
open (FILE, "$file") or die "Can't open $file ($!)";
print <FILE>;
close FILE;
}
The code to embed where u want is......
|; &include ("../../header.html"); print qq| for example.
This has been working fine, but i need (or i think i do..?) to embed a different type of ssi. I have installed the What's New MOD. I want a small list of the last 15 what's new items to show in a little side menu. I can do it from an html page, no problem (as per url below). How would i go about calling in the following from the html.pl, it's not quite working.......?
|; &include ("/cgi-local/dbman/db.cgi?db=ssi&uid=default&listnew=1&view_records=1"); print qq|
I hope this is clear as mud!!!! I've included the url for u to see.
http://www.englishcivilwar.net/adv_search.shtml
thanks in advance.........