Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old November 27th, 2006, 09: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, 06: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, 09: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, 10:50 AM
Newbie
 
Join Date: Nov 2006
Posts: 3
Default

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

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles