Author Topic: How to include perl scripts and server side includes in WebsiteBaker pages  (Read 2763 times)

bigeddude

  • Guest
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.

Code: [Select]
<?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.

Code: [Select]
<?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.