PHP and R

Hi, I am new to PHP. Please help me with the following question:

Is there any way I can integrate R with PHP in yii framework.

Thanks in advance.

Using the php “exec” function

Thank you for your response. Can you please give any example of calling an R function? If I want to call a R function(with parameters) and store the output returned by R in php variable-how can I do that?

Is R-php compatible with yii framework?

There are no languag bindings for R in PHP, so you’ve got to invoke the R environment from the shell as Wanderson suggested. See here: http://php.net/manual/en/function.exec.php