You could do the backtick way (as davorg mentioned), but if you are using mod_perl, you may want to look at Apache::SSI. This may (or may not) do what you want with minimal changes. But, if you are changing the whole way your system works (static to dynamic) you may want to not put a bandaid on it and simply redo it all the right way. What is the right way? Well, that is for you to decide. Maybe HTML::Mason is, or Embperl, etc...
Cheers,
KM | [reply] |
In that case I would be tempted just to execute tha scripts using `...` and insert the output in the approprite place.
I can think of two potential problems with that tho'
- The paths to the scripts in your SSI calls will be URLs, but you'll need absolute filepaths.
- All of the scripts that are called from SSIs will return 'Content-type:' headers which will no longer be needed.
--
<http://www.dave.org.uk>
European Perl Conference - Sept 22/24 2000
<http://www.yapc.org/Europe/>
| [reply] |