iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2007, 05:41 PM
WebProWorld Member
 
Join Date: Nov 2006
Posts: 79
dak888 RepRank 0
Default Perl, CGI and SSI

Hello all,

Here is the situation:

I'm updating an old perl/cgi shopping cart system that we used to use on our site. I'm updating it because it has a special feature built into it that we want to use in our current set up.

I know pretty much nothing about perl (or files in the cgi-bin for that matter) but I've managed to get the pages generated by perl to look like the rest of our site...with one exception. I can't get any of the SSI to work!

The perl code calls an html template which resides in the cgi bin with the perl programs. The template acts as a "shell" for the perl code if you will.

I've tried just about every combination on calling the include that I can think of (virtual, file, ../, / etc..) but I just can't get it to show any of the includes. I then tried moving the template to the root folder and changing the template file location in the perl code to the template file in the root folder. Nope! Although I can see the includes if I just manually bring the page up (www.site.com/template.html).

I've also tried putting the include files in the cgi-bin in the same folder as the template file but that doesn't seem to work either.

Am I beating my head against a door that won't open? Am I missing something simple?

I do apologize, I'm not real familiar with perl or working with files in the cgi-bin.

Any help is appreciated.

Thanks,

DaK
Reply With Quote
  #2 (permalink)  
Old 02-26-2007, 04:41 PM
allaffiliatepro's Avatar
WebProWorld Member
 
Join Date: Oct 2004
Location: International
Posts: 83
allaffiliatepro RepRank 0
Default

Hi,
CGI output is not parsed for ssi. You can either write code that would mimic the ssi call reading in the file and adding it to the output, or you can probably update the apache config to include .cgi and .pl files output to be parsed for SSI.


Lyle
__________________
Lyle Hopkins
Internet Marketing Tutorials, guides and advice
Affiliate software Advanced Affiliate Solutions
Reply With Quote
  #3 (permalink)  
Old 02-27-2007, 12:16 PM
WebProWorld Member
 
Join Date: Jul 2003
Posts: 37
gwhite RepRank 0
Default Perl, CGI and SSI

Use the module CGI::SSI from CPAN.org to provide SSI type parsing on generated pages.
__________________
g
take a free health assessment HealthStatus.com
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:26 PM.



Search Engine Optimization by vBSEO 3.3.0