[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] SSI



>How exactly do you get a SSI to work? Below is the program I wish to run
>(ie, program that prints out the stuff I want to include) whenever the
>file is called via...
><!--#exec cgi="banner.pl"-->
>...assuming the correct path. Since I have large indents and it will
>likely wrap I've included a short version. There are no variables etc in
>$banner, just html code for a menu bar
>
>--Nick
>
>#!perl -w
>#### short version ####
>$banner = <<BANNER ;
>     ...stuff goes here...
>BANNER
>print "$banner";
>


Why don't you include a file like O'Reilly Mice book suggest ?

ie <!--#include file="address.html"--> if the file is in the same folder, or,
<!--#include virtual="/pub/address.html"--> if the file is in an other folder.

You will find all doc at url :
http://www.cgi-resources.com/Documentation/Server_Side_Includes/

MJM



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org