Home  >  Article  >  Backend Development  >  How does PHP call R language functions like calling C language functions?

How does PHP call R language functions like calling C language functions?

WBOY
WBOYOriginal
2016-07-06 13:52:261750browse

How PHP calls R language functions, instead of using the exec or system method to execute them. Instead, it calls a function in the R program.

Reply content:

How PHP calls R language functions, instead of using the exec or system method to execute them. Instead, it calls a function in the R program.

Use RPC middleware to implement, the typical tool is thrift

rpc is the best solution. If the requirements are not high, it is also good to provide a socket or http service

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn