[EMAIL PROTECTED]'s message:
>> I'm not entirely sure if I'm getting what you're asking here - I get the
>> impression you want the Perl program to call the php script, such as
>> http://localhost/script.php3 and get the results from that script which you
>> then push into the results of your perl script, correct? The reason I'm
>> not sure is the part where you create a bunch of files in your tmp directory
>> and then process those. Are you saying you're getting perl to create PHP
>> code, and getting Apache to process those, and then returning the results,
>> or that you're getting perl to create a batch command essentially?
>
>This is the problem.. I'm not just fetching a local php page, I am actually
>using Perl to generate a bunch of PHP commands, which I then want Apache
>to process on the way back to the client. Until a stable 2.0 Apache is
>out and I can use SetOutputFilter, I am left with (what I think is the only
>choice left...) creating a temporary file, under DOCUMENT_ROOT, putting the
>generated PHP into it, using LWP or friends to fetch that page throuh Apache,
>which will then parse the PHP with mod_php, and send that output back to
>the client via 'print $fetched_contents;'
You'll be happier, and the code will run faster, if you use an Apache
subrequest instead of a full-blown LWP request. If you're not
familiar with subrequests, look up $r->lookup_uri() and
$r->lookup_file() in the mod_perl docs and/or the Eagle book.
-Ken Williams
The Math Forum
[EMAIL PROTECTED]