books
Free Books / Computers / Practical mod_perl /

previous page: B.4.3. Apache::httpd_conf—Generate an httpd.conf File
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.4.5. Apache::ConfigFile—Parse an Apache-Style httpd.conf Configuration File

B.4.4. Apache::src—Methods for Locating and Parsing Bits of Apache Source Code




Description

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

This module provides methods for locating and parsing bits of Apache source code. For example:

my $src = Apache::src->new;
my $v = $src->httpd_version;

returns the server version. And:

my $dir = $src->dir;
-d $dir or die "can't stat $dir $!\n";

returns the top level directory where source files are located and then tests whether it can read it.

The main( ) method will return the location of httpd.h:

-e join "/", $src->main, "httpd.h" or die "can't stat httpd.h\n";

Other methods are available from this module.

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

 

Continue to:

  • prev: B.4.3. Apache::httpd_conf—Generate an httpd.conf File
  • Table of Contents
  • next: B.4.5. Apache::ConfigFile—Parse an Apache-Style httpd.conf Configuration File

Books by Stas Bekman:















TOP
previous page: B.4.3. Apache::httpd_conf—Generate an httpd.conf File
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.4.5. Apache::ConfigFile—Parse an Apache-Style httpd.conf Configuration File

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