Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Apache::Handlers 0.02

    Download button

    No screenshots available
    Downloads: 304  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    James G Smith | More programs
    Perl Artistic License / FREE
    May 13th, 2010, 17:26 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Apache::Handlers description

    Handlers for Apache

    Apache::Handlers is a Perl module that provides two different methods of declaring when code snippets should be run during the Apache request phase.

    The code defined with the constructs provided by this module do not directly affect the success or failure of the request. Thus, this module does not provide a replacement for content, access, or other handlers.

    The code is executed in the order it is encountered except for CHILDEXIT, CLEANUP, PerlChildExitHandler, and PerlCleanupHandler code. These are executed in the reverse order, similar to the pairing of BEGIN and END blocks.

    The block construct or attribute must be run before the phase it refers to. Otherwise, it won't be run in that phase. The phases are run in the following order:

    CHILDINIT TRANS HEADERPARSER ACCESS AUTHEN AUTHZ TYPE FIXUP CONTENT LOG CLEANUP CHILDEXIT

    The RESTART phase is not an actual Apache request phase and has no effect after the server has started. It is used to define code that should run during the server startup phase when Apache reads the server configuration the second time or is gracefully (or not so gracefully) restarted. It should be used to clean up so the second configuration process won't duplicate information or cause errors.

    If this module is called during the ChildInit phase, then it will only call that code associated with CHILDINIT blocks. Otherwise, the CHILDINIT code will be run at the first opportunity (basically, the first request made of the child process). Thus the two Perl*Handler configuration directives in the Synopsis.

    SYNOPSIS

    In code:

     use Apache::Handlers qw(CLEANUP);

     our $global;
     my $session : PerlCleanupHandler;

     CLEANUP {
     our $global = undef;
     };


    In httpd.conf:

     PerlModule Apache::Handlers
     PerlChildInitHandler Apache::Handlers
     PerlPostReadRequestHandler Apache::Handlers
     < Perl >
     Apache::Handlers -> reset;
     < /Perl >



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    code snippets | Apache request | Perl module | Apache | request | snippets

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM