Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Phalcon, Zephir exec() Rscript (R language)

Hi, I plan to develop an application based on the Phalcon PHP Framework, PHP application needs to communicate with Rscript program to execute scripts written in the R language.

Normally I can use exec() PHP function

exec("Rscript statistic.R $my_input");

What interests me is it possible in the Zephir language to use exec() or another command to execute other programs and scripts?

We need a maximum speed of communication between php and Rscript.

thank you


You can use any PHP function in Zephir without problem:

BTW, Remember that Zephir has its own forum: