Connecting Tech Pros Worldwide Help | Site Map

Perl CGI and Apache SSI

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 27th, 2006, 08:31 AM
Newbie
 
Join Date: Nov 2006
Posts: 3
Default Perl CGI and Apache SSI

Hi, I have an index.html that includes files using the include directive from Apache mod_include. I have an header, menu and footer.

What I want is to be able to include this files in a perl cgi script.

How can I do this?

I was trying CGI::SSI_Parser and using fssi($filename) but no good...

I've tried:

Expand|Select|Wrap|Line Numbers
  1. use CGI::SSI_Parser;
  2.  
  3. fssi("./header.html");
  4.  
  5. sssi('<!--#include virtual="./header.html" -->');
  6.  
Reply
  #2  
Old November 27th, 2006, 05:47 PM
Member
 
Join Date: Nov 2006
Posts: 83
Default

Why don't you just do:
Expand|Select|Wrap|Line Numbers
  1. open my $header, '<', './header.html' or die $!;
  2. print <$header>;
Reply
  #3  
Old November 28th, 2006, 08:53 PM
miller's Avatar
Moderator
 
Join Date: Oct 2006
Location: San Francisco, CA
Posts: 830
Default

CGI::SSI_Parser is old and should be deprecated. Instead use CGI::SSI or Apache:SSI.
Reply
  #4  
Old November 29th, 2006, 09:50 AM
Newbie
 
Join Date: Nov 2006
Posts: 3
Default

Well I'm using HTML::Template...
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.