WebsiteBaker Support (2.8.x) > Templates, Menus & Design
How to include perl scripts and server side includes in WebsiteBaker pages
(1/1)
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.
--- Code: ---<?php echo @stripslashes( @join( @file( "http://www.yourdomain.com/cgi-bin/your_perl_script.pl" ),"" ) );?>
--- End code ---
If you have a server side include as a template file for your perl script, you would include it as follows.
--- Code: ---<?php echo @stripslashes( @join( @file( "http://www.yourdomain.com/cgi-bin/your_perl_script.pl?template=ssi.html" ),"" ) );?>
--- End code ---
This will work with perl script .cgi or .pl file types.
Navigation
[0] Message Index
Go to full version