We have a fairly extensive site based on mod_perl that works really well, and we are very pleased with it. Now we want to change a different advertising provider, and so, for flexibility's sake we are using mod_adbanners.c which hooks into the PostReadRequest phase, then depends on mod_include to replace environment variables. This works well on .shtml files. Now in our perl code, we'd like to get this same functionality, but the environment vars, though we can see them in the enviroment in mod_include, are not there in mod_cgi or mod_perl. The table they are using is subprocess_env, just like the doc says it should, and we've even hacked it to use the notes table, but to no avail.

Does anyone know how get mod_perl and mod_adbanner to work in the same request? As near as I can see, mod_perl handlers seem exclusive of any other handlers. Am I just compiling it wrong?

We've compiled mod_perl with PerlPostReadRequestHandler Disabled, assuming that if mod_perl was hooking into that phase, that it would be exclusive of the mod_adbanners, which hooks in at that phase. Any suggestions?
--
Jay "Yohimbe" Thorne, alpha geek for UserFriendly


In reply to mod_perl with a module attached to PostReadRequest by Yohimbe

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.