in reply to RE: Re: SSI in CGI scripts?
in thread SSI in CGI scripts?
and your s/ would replace all of it by $include. Did you want:$1 eq "[include]"; $2 eq <whatever path you wanted> $3 eq "[/include]";
This won't work for multiple [include][/include]'s in the same ThePost, though the first might. Guess I'm still not clear, I thought you wanted to replace the include tags w/ the ssi #include instruction for the filename found between the tags. Don't see why you want to put your [include] tags back in to the output stream.$ThePost =~ s/(\[include\])(\S+?)(\[\/include\])/${1}$include${2}/ig; or: $ThePost = "[include]$include[/include]";
a
|
|---|