Do you know where your variables are? | |
PerlMonks |
Parsing SSI through CGIby higle (Chaplain) |
on Feb 01, 2002 at 16:12 UTC ( [id://142708]=perlquestion: print w/replies, xml ) | Need Help?? |
higle has asked for the wisdom of the Perl Monks concerning the following question:
'Morning, Everyone-- On my company's intranet, I've built a CGI script that accepts a product ID, uses it to query our product database, and generates a page dynamically to the browser. Simple enough... ...until the Powers That Be decided to redesign the intranet reference system. Now, they're wanting to use SSI (argh!) to include a newly designed navigation thingumy at the top of all the pages. The problem that I've run up against is trying to get my script to parse the HTML and execute the SSI directives before printing the page to the browser. My company is tight about installing new modules on our machines, so I can't use CGI::SSI, CGI::SSI_Parser, or Apache::SSI (we're running a Netscape webserver, too. Gurgle...). It's starting out pretty simple now, only including one .shtml file in the dynamic output. I want to be prepared, however, to handle this monster if it gets any bigger, with SSI #exec directives or whatever. I'd hate to have to roll my own module, and I don't want to do it the clunky way, manually retrieving the included file, reading into a scalar, and printing it inline with the usual output. Is there a simpler way of doing this, by either modifying the document header, or something? Or am I going to have to make my own module, or manually retrieve the file? Thanks so much for any help! ------------------------ higle
Back to
Seekers of Perl Wisdom
|
|