Click to See Complete Forum and Search --> : Running SSI within perl templates


druss
03-12-2003, 04:08 AM
I am using a cgi script to read a html, fill in the gaps and then print the output, the problem however is that SSI tags dont work when there printed through cgi, it works obviously with normal htm files but im not sure wether because its not possible with cgi or wether i have to parse cgi first in my .htaccess file so that it may run ssi?

Thanks
Gozza

jeffmott
03-12-2003, 09:44 AM
SSI commands are usually not interpreted when read by another server side program. After you've read in the file you'll have to search the contents for any include statements, read in the file the statement referrs to, and replace the statement with that new data.