Edgard Pineda wrote:
> Hello,
>       I need some hints on this problem: I have a code in mod_perl that
> generate a html page with some php code (<?php ... ?>), but before to
> send this data to the browser I would like the mod_php processed the
> code first. How can I accomplish this? (I use mod_perl 1.26, Apache 1.3,
> php 4.1) (are there some functions on Apache module?)

the short answer is that you can't do this with apache 1.3.

if you upgrade to apache 2.0 or higher you can do this with recent versions
of php.  a cursory glance through the php code and configuration leads me to
believe that php will function as a filter if you build php like this

  $ ./configure --with-apxs2filter=/path/to/apache/bin/apxs

but I'm not really into php, so it might take more than that.  but it looks
like php definitely has a filter option in at least 5.0.5 (and most likely
earlier).  folks on the various php help lists should know more.

HTH

--Geoff

Reply via email to