Hi,
The output of your SSI call would be correct, but because its running through page.cgi, it doesn't get parsed as SSI (i.e its just a normal HTML page, and the code will just be shown, instead of the desired content). To run exteral "includes", you could try this global;
Code:
sub {
open (FILEREAD,$_[0]) || die qq{Can't read $_[0] . Reason: $!};
my @data = <FILEREAD>;
close (FILEREAD);
return join ("", @data);
}
Its not very advanced I'm afraid, but it should let you include pretty much any file, by just using;
<%global_name('/full/server/path/to/file.txt')%>
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!