daniel.angil...@imperia.net wrote:
>
> Hello,
>
> I found a way to parse the output of mod_perl through PHP with debian
> linux.
>
>
> PHP has to be compiled with "apxs2filter":
> --
> "apt-get install apache2-threaded-dev"
> for apxs2
>
> download latest php
>
Hello,
I found a way to parse the output of mod_perl through PHP with debian
linux.
PHP has to be compiled with "apxs2filter":
--
"apt-get install apache2-threaded-dev"
for apxs2
download latest php
.configure --with-apxs2filter=/usr/bin/apxs2
make
attention:
> No, mod_php is not tightly integrated with apache the way mod_perl is.
> It doesn't allow you to write your own filters or handlers. The best
> you can do is make a perl output filter that runs the PHP code.
OK, thank you for the fast answer.
I will try ;)
Daniel
On Mar 17, 2009, at 9:21 AM, daniel.angil...@imperia.net wrote:
is it possible to parse the output of mod_perl handler through PHP?
You can if you write a perl filter that uses PHP::Interpreter to
execute some code that parses your mod_perl output.
Best,
David
Perhaps something like this might work?
in index.php:
$phpcode =
file_get_contents("http://127.0.0.1/path/to/perl/module/that/outputs/php/code.pl";);
eval($phpcode);
Obviously, you'd have to take care with the php syntax that was output
from code.pl, but that might give you the functiona
On Tue, Mar 17, 2009 at 12:21 PM, wrote:
> is it possible to parse the output of mod_perl handler through PHP?
No, mod_php is not tightly integrated with apache the way mod_perl is.
It doesn't allow you to write your own filters or handlers. The best
you can do is make a perl output filter tha
Hello list,
is it possible to parse the output of mod_perl handler through PHP?
I tried like this:
### httpd.conf ###
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
### vhost.conf ###
SetHandler modperl
PerlHandler My::Handler
SetOutputFilter PHP