How to include perl scripts and server side includes in WebsiteBaker pages

bigeddude

If you have a perl script that you would like to display inside of a WB page you can use the following code in your template where you want the include to show.

<?php echo @stripslashes( @join( @file"http://www.yourdomain.com/cgi-bin/your_perl_script.pl" ),"" ) );?>

If you have a server side include as a template file for your perl script, you would include it as follows.

<?php echo @stripslashes( @join( @file"http://www.yourdomain.com/cgi-bin/your_perl_script.pl?template=ssi.html" ),"" ) );?>

This will work with perl script .cgi or .pl file types.