in reply to Calling a PHP script from within Perl

In a large way, this depends on your web server. As far as I know, there is no way to do it in Apache 1.x, but it is possible in Apache 2.x, where you can specify a list of handlers.

And it means you will have more load on your server, since you'll be doing double processing, (Perl and PHP) for one pageview.

Your best options, IMHO, are:

  • Comment on Re: Calling a PHP script from within Perl

Replies are listed 'Best First'.
Re: Re: Calling a PHP script from within Perl
by mutated (Monk) on Apr 13, 2004 at 15:26 UTC
    The command line php interpreter is completely seperate from apache so if it's on the local machine, it really has nothing to do with apache at all, it will be loading both a perl, and php interpreter to run the program, but depending on the situation, that might me more desirable then duplicating the code in perl as far as code maintance and whatnot is concerned.


    daN.