ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы.



Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 11.4 Running CGI Scripts with mod_perlChapter 11
Web Server Programming with mod_perl
Next: 11.6 <Perl> Sections
 

11.5 Server-Side Includes with mod_perl

Server-side includes (SSI) are tags embedded directly into an HTML file that perform special functions. They are most commonly used for running CGI scripts and displaying the result; most web page counters are performed using SSI.

If you use mod_perl with mod_include (another Apache server module), you can embed Perl subroutines into SSI directives. For example:

The Apache::Include module lets you include entire Apache::Registry scripts:
You could have used standard SSI to include a CGI script for the same purpose, but this way is faster. To use mod_include with mod_perl, you need to configure mod_perl to do so at compile time.


Previous: 11.4 Running CGI Scripts with mod_perlPerl in a NutshellNext: 11.6 <Perl> Sections
11.4 Running CGI Scripts with mod_perlBook Index11.6 <Perl> Sections