On Mon, Dec 09, 2002 at 05:30:22PM +0000, Simon Wistow wrote:
> On Mon, Dec 09, 2002 at 02:59:29PM +0000, the hatter said:

> This got me wondering bad an evil thoughts about wrapping PHP as a
> Perl module.

> IIRC correctly the actual interface to the parser isn't all that
> complicated - something like ...

I smell a trigger-happy hacker :). Maybe I'm just really thick, but would
it be a better idea to run a backend PHP application server, cutting the
problem into two nice, simple, easy to maintain layers.

Have all the frontend in perl -- with maybe a namespace dedicated to the
PHP backend via. mod_rewrite. PHP requests that need wrapped with header/
footers, etc. can be parsed by the intermediary perl.

If it's the other way aronud, with perl output being fed into the PHP
interpreter, I'm sure a setup similar to this could work too. Your problem
sounds a bit icky though - is there no nicer way around it? Merging a PHP
package into a perl app sounds minging..

David.

Reply via email to