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