books
Free Books / Computers / Practical mod_perl /

previous page: B.18.4. Apache::Icon—Look Up Icon Images
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.18.6. Apache::Language—Perl Transparent Language Support for Apache Modules and mod_perl Scripts

B.18.5. Apache::Include—Utilities for mod_perl/mod_include Integration




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

The Apache::Include module provides a handler, making it simple to include Apache::Registryscripts with the mod_include Perl directive.

Apache::Registryscripts can also be used in mod_include-parsed documents using a virtual include.

The virtual( ) method may be called to include the output of a given URI in your Perl scripts. For example:

use Apache::Include ( );
print "Content-type: text/html\n\n";

print "before include\n";
my $uri = "/perl/env.pl";
Apache::Include->virtual($uri);
print "after include\n";

The output of the perl CGI script located at /perl/env.pl will be inserted between the "before include" and "after include" strings and printed to the client.

Supplied with the mod_perl distribution. See the module manpage for more information.

 

Continue to:

  • prev: B.18.4. Apache::Icon—Look Up Icon Images
  • Table of Contents
  • next: B.18.6. Apache::Language—Perl Transparent Language Support for Apache Modules and mod_perl Scripts

Books by Stas Bekman:















TOP
previous page: B.18.4. Apache::Icon—Look Up Icon Images
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.18.6. Apache::Language—Perl Transparent Language Support for Apache Modules and mod_perl Scripts

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com