PHP ↔ Perl interface or bindings

こ雲淡風輕ζ 提交于 2019-12-23 10:17:24

问题


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.


回答1:


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 ..




回答2:


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.



来源:https://stackoverflow.com/questions/4299297/php-%e2%86%94-perl-interface-or-bindings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!