Re: mod_perl handler and PHP

2009-03-21 Thread Issac Goldstand
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 >

Re: mod_perl handler and PHP

2009-03-19 Thread Daniel . Angileri
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:

Re: mod_perl handler and PHP

2009-03-18 Thread Daniel . Angileri
> 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

Re: mod_perl handler and PHP

2009-03-17 Thread David E. Wheeler
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

Re: mod_perl handler and PHP

2009-03-17 Thread Michael A. Capone
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

Re: mod_perl handler and PHP

2009-03-17 Thread Perrin Harkins
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

mod_perl handler and PHP

2009-03-17 Thread Daniel . Angileri
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