Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP ↔ Perl interface or bindings

What PHP ↔ Perl interface or bindings do you recommend?

I need to be able to run Perl functions located in a Perl file from a PHP script and get the return values.

I've already found the PECL "perl" package but I'm not sure how reliable it is since the last Subversion activity was ~12 months ago.

I've also found the Perl module PHP::Interpreter that is supposed to work both ways according to an almost 3 year old tutorial, Integrating PHP and Perl.

I would really appreciate it if you can recommend (or not) either of those 2 options or if you've got a better option that I haven't seen yet.

like image 528
Kristinn Örn Sigurðsson Avatar asked Nov 28 '10 21:11

Kristinn Örn Sigurðsson


2 Answers

Never used any of those, but they look interesting..

Take a look at Gearman as well.. more overhead in systems like these but you get other cool stuff :) Guess it depends on your needs ..

like image 67
Øyvind Skaar Avatar answered Sep 23 '22 07:09

Øyvind Skaar


Your best bet would probably be Thrift. It connects those languages (and a lot more) between each other. The only downside is requiring a network server to run and receive those requests on either side.

like image 39
Tim Dorr Avatar answered Sep 21 '22 07:09

Tim Dorr