Aaron Johnson wrote:
> 
> I was thinking about the same thing awhile back.  It was interesting to me that
> lots of neat applications are PHP based.  I would like to be able to take the
> processed PHP page and include it inside of my mod_perl page.  I was thinking
> there are several ways I could handle.  I can have a seperate directory that
> process the php files and just use the LWP::Simple to get the page as a
> processed string.  Then replace any content with =~ s/blah/cool/ inside of the
> mod_perl processed page.  I do this with some cgi programs that I use
> currently.  It works ok, but the overhead must be tremendous.  Anybody else done
> anything similar?
> 

You know how there's $Response->Include('xyz.inc') in the modperl
Apache::ASP ? This file will be executed as an ASP script locally 
and the output included in the stream.  One could imagine letting 
this method auto-detect for the http:// prefix, and if it exists 
use LWP to call the URL and include the output that way.

I have also started work on a $Response->TrapInclude() method
which will return the output instead of sending it straight to 
the client HTML buffer, you could TrapInclude then to capture
the lwp-request automatically for post processing.

If LWP behavior is available, I wonder whether to turn its 
abilities on by default, or require some LWPInclude config
to be activated first?

Also, I wonder whether to allow Apache::ASP to compile LWP
input as an ASP script.  Since ASP scripts can execute arbitrary
code, this seems to me to increase the potential security
risks to a site.

--Joshua

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Reply via email to